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.
This commit is contained in:
David Vierra 2013-01-29 12:21:01 -10:00
parent b3042cec46
commit 18368c04de

View File

@ -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'):