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 currentPath = os.path.realpath(os.path.dirname(os.path.abspath(__file__)))
24 proc = subprocess.Popen(['./.salome_run'] + args,
25 close_fds=True, cwd=currentPath)
26 out, err = proc.communicate()
27 return out, err, proc.returncode
29 if __name__ == "__main__":