Use dirname of executable for current dir

The changeset 8ec708476327 wrongly removed the call to dirname.

issue6862
review39811002
This commit is contained in:
Cédric Krier committed 2017-10-18 15:01:40 +02:00
1 parent 48e170c1a4
commit 8b593beff7
1 file changed
+1 -1
+1 -1
View File
@@ -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())