Permalink
Browse files

Fixed: parentDir was an empty string when running from source.

Use abspath to avoid getting an empty string for the folder containing the script, when not frozen.
  • Loading branch information...
1 parent b3042ce commit 18368c04de85683a5742eee288b98028f137bdb0 @codewarrior0 codewarrior0 committed Jan 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 directories.py
View
@@ -66,7 +66,7 @@ def findDataDir():
def fsdecode(x):
return x.decode(sys.getfilesystemencoding())
- argzero = fsdecode(sys.argv[0])
+ argzero = fsdecode(os.path.abspath(sys.argv[0]))
if sys.platform == "win32":
if hasattr(sys, 'frozen'):

0 comments on commit 18368c0

Please sign in to comment.