Merge pull request #47 from navjotcis/codequalitykivy
Quality issues fixed
This commit is contained in:
commit
a30a0de8c4
|
@ -46,7 +46,7 @@ def lookupAppdataFolder():
|
||||||
dataFolder = os.path.join(
|
dataFolder = os.path.join(
|
||||||
os.environ['HOME'],
|
os.environ['HOME'],
|
||||||
'Library/Application Support/', APPNAME
|
'Library/Application Support/', APPNAME
|
||||||
) + '/' # FIXME: should also be os.path.sep
|
) + '/' # ..fixme:: should also be os.path.sep
|
||||||
except KeyError:
|
except KeyError:
|
||||||
sys.exit(
|
sys.exit(
|
||||||
'Could not find home folder, please report this message'
|
'Could not find home folder, please report this message'
|
||||||
|
@ -78,6 +78,7 @@ def lookupAppdataFolder():
|
||||||
|
|
||||||
def codePath():
|
def codePath():
|
||||||
"""Returns path to the program sources"""
|
"""Returns path to the program sources"""
|
||||||
|
# pylint: disable=protected-access
|
||||||
if not frozen:
|
if not frozen:
|
||||||
return os.path.dirname(__file__)
|
return os.path.dirname(__file__)
|
||||||
return (
|
return (
|
||||||
|
@ -85,7 +86,6 @@ def codePath():
|
||||||
if frozen == "macosx_app" else sys._MEIPASS)
|
if frozen == "macosx_app" else sys._MEIPASS)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def tail(f, lines=20):
|
def tail(f, lines=20):
|
||||||
"""Returns last lines in the f file object"""
|
"""Returns last lines in the f file object"""
|
||||||
total_lines_wanted = lines
|
total_lines_wanted = lines
|
||||||
|
|
Reference in New Issue
Block a user