Use sys.executable only for tryton.exe (not for neso)

This commit is contained in:
Cédric Krier committed 2011-04-29 16:53:07 +02:00
1 parent f133ddf43c
commit abd92a07e1
1 file changed
+2 -1
+2 -1
View File
@@ -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: