]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix previous commit on salome_common.py which led to a bad applipath
authorGilles DAVID <gilles-g.david@edf.fr>
Wed, 15 Mar 2023 14:23:36 +0000 (15:23 +0100)
committerGilles DAVID <gilles-g.david@edf.fr>
Wed, 15 Mar 2023 14:23:36 +0000 (15:23 +0100)
bin/appliskel/salome_common.py

index 65d6b525b1b3fdaaf0d7671957ffc514c8a63499..cb9393113829622a88f35da3d420e91ff8da057a 100644 (file)
@@ -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')