1 #! /usr/bin/env python3
11 ''' Load modules then launch salome
14 env_modules = MODULES[:]
15 env_modules_option = "--with-env-modules="
16 env_modules_l = [x for x in args if x.startswith(env_modules_option)]
18 env_modules += env_modules_l[-1][len(env_modules_option):].split(',')
19 args = [x for x in args if not x.startswith(env_modules_option)]
20 env_modules_option += "%s" % ','.join(env_modules)
21 args.append(env_modules_option)
23 appliPath = os.path.dirname(os.path.realpath(__file__))
24 proc = subprocess.Popen([os.path.join(appliPath, '.salome_run')] + args, close_fds=True)
25 out, err = proc.communicate()
26 sys.exit(proc.returncode)
28 if __name__ == "__main__":