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: