Salome HOME
Updated copyright comment
[modules/kernel.git] / bin / appliskel / salome_common.py
index 65d6b525b1b3fdaaf0d7671957ffc514c8a63499..1cb1738e12e3c5f2f645bfe4747efa69f0646051 100644 (file)
@@ -1,5 +1,5 @@
 #! /usr/bin/env python3
-# Copyright (C) 2021-2022  CEA/DEN, EDF R&D
+# Copyright (C) 2021-2024  CEA, EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -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')