#! /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
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')