From 8b593beff7180d6e814ae4dbfd3d0cfb0e3a6852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 18 Oct 2017 15:01:40 +0200 Subject: [PATCH] Use dirname of executable for current dir The changeset 8ec708476327 wrongly removed the call to dirname. issue6862 review39811002 --- tryton/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/config.py b/tryton/config.py index 4dab67bbd4..aff38f0329 100644 --- a/tryton/config.py +++ b/tryton/config.py @@ -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())