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:
parent
b3042cec46
commit
18368c04de
@ -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'):
|
||||
|
Reference in New Issue
Block a user