From abd92a07e12f9fc671d0cd05392bda4de5c01cfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 29 Apr 2011 16:53:07 +0200 Subject: [PATCH] Use sys.executable only for tryton.exe (not for neso) --- tryton/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tryton/config.py b/tryton/config.py index 32098f7765..89e7233f61 100644 --- a/tryton/config.py +++ b/tryton/config.py @@ -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: