Use sys.executable only for tryton.exe (not for neso)
This commit is contained in:
1 parent
f133ddf43c
commit
abd92a07e1
1 file changed
+2
-1
+2
-1
@@ -180,7 +180,8 @@ class ConfigManager(object):
|
||||
self.defaults.get(key)))
|
||||
|
||||
CONFIG = ConfigManager()
|
||||
if os.name == 'nt' and hasattr(sys, 'frozen'):
|
||||
if (os.name == 'nt' and hasattr(sys, 'frozen')
|
||||
and os.path.basename(sys.executable) == 'tryton.exe'):
|
||||
CURRENT_DIR = os.path.dirname(unicode(sys.executable,
|
||||
sys.getfilesystemencoding()))
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user