From: Gilles DAVID Date: Wed, 15 Mar 2023 14:23:36 +0000 (+0100) Subject: Fix previous commit on salome_common.py which led to a bad applipath X-Git-Tag: emc2p_1.4.0-rc1~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3fbb58bd69a4618a0c7a5ffd046adb95d9018a6a;p=modules%2Fkernel.git Fix previous commit on salome_common.py which led to a bad applipath --- diff --git a/bin/appliskel/salome_common.py b/bin/appliskel/salome_common.py index 65d6b525b..cb9393113 100644 --- a/bin/appliskel/salome_common.py +++ b/bin/appliskel/salome_common.py @@ -27,7 +27,7 @@ import sys def main(args): ''' Load modules then launch salome ''' - appliPath = os.path.dirname(os.path.realpath(__file__)) + appliPath = os.path.realpath(os.path.dirname(os.path.abspath(__file__))) MODULES_FILE = os.path.join(appliPath, "env_modules.json") if os.path.isfile(MODULES_FILE): env_modules = json.loads(open(MODULES_FILE).read()).get('env_modules')