Use dirname of executable for current dir
The changeset 8ec708476327 wrongly removed the call to dirname. issue6862 review39811002
This commit is contained in:
1 parent
48e170c1a4
commit
8b593beff7
1 file changed
+1
-1
+1
-1
@@ -161,7 +161,7 @@ class ConfigManager(object):
|
||||
CONFIG = ConfigManager()
|
||||
CURRENT_DIR = os.path.dirname(__file__)
|
||||
if hasattr(sys, 'frozen'):
|
||||
CURRENT_DIR = sys.executable
|
||||
CURRENT_DIR = os.path.dirname(sys.executable)
|
||||
if not isinstance(CURRENT_DIR, unicode):
|
||||
CURRENT_DIR = unicode(CURRENT_DIR, sys.getfilesystemencoding())
|
||||
|
||||
|
||||
Reference in new issue
Block a user