now finds textures when using interactive console
This commit is contained in:
5
util.py
5
util.py
@@ -26,4 +26,7 @@ def get_program_path():
|
|||||||
if hasattr(sys, "frozen") or imp.is_frozen("__main__"):
|
if hasattr(sys, "frozen") or imp.is_frozen("__main__"):
|
||||||
return os.path.dirname(sys.executable)
|
return os.path.dirname(sys.executable)
|
||||||
else:
|
else:
|
||||||
return os.path.dirname(sys.argv[0])
|
try:
|
||||||
|
return os.path.dirname(__file__)
|
||||||
|
except NameError:
|
||||||
|
return os.path.dirname(sys.argv[0])
|
||||||
|
|||||||
Reference in New Issue
Block a user