From a2a1f3f0b5eff03f32ea17e9d87d0490c79489c4 Mon Sep 17 00:00:00 2001 From: lakshyacis Date: Fri, 11 Oct 2019 16:41:48 +0530 Subject: [PATCH] Quality issues fixed --- src/paths.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/paths.py b/src/paths.py index b203680a..92c49a85 100644 --- a/src/paths.py +++ b/src/paths.py @@ -46,7 +46,7 @@ def lookupAppdataFolder(): dataFolder = os.path.join( os.environ['HOME'], 'Library/Application Support/', APPNAME - ) + '/' # FIXME: should also be os.path.sep + ) + '/' # ..fixme:: should also be os.path.sep except KeyError: sys.exit( 'Could not find home folder, please report this message' @@ -78,6 +78,7 @@ def lookupAppdataFolder(): def codePath(): """Returns path to the program sources""" + # pylint: disable=protected-access if not frozen: return os.path.dirname(__file__) return ( @@ -85,7 +86,6 @@ def codePath(): if frozen == "macosx_app" else sys._MEIPASS) - def tail(f, lines=20): """Returns last lines in the f file object""" total_lines_wanted = lines @@ -132,4 +132,4 @@ def lastCommit(): ) except (IOError, AttributeError, TypeError): pass - return result \ No newline at end of file + return result