From c0fd3291e43706922bad49a75a8339024bb6b9b5 Mon Sep 17 00:00:00 2001 From: Gilles DAVID Date: Tue, 19 Sep 2017 16:37:51 +0200 Subject: [PATCH] Fix launch of .salome_run Using the cwd param in subprocess.Popen changes the current directory, which is not what we want. --- bin/appliskel/salome | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/appliskel/salome b/bin/appliskel/salome index b8b43e800..d44507d2c 100755 --- a/bin/appliskel/salome +++ b/bin/appliskel/salome @@ -20,9 +20,8 @@ def main(args): env_modules_option += "%s" % ','.join(env_modules) args.append(env_modules_option) - currentPath = os.path.realpath(os.path.dirname(os.path.abspath(__file__))) - proc = subprocess.Popen(['./.salome_run'] + args, - close_fds=True, cwd=currentPath) + appliPath = os.path.realpath(os.path.dirname(os.path.abspath(__file__))) + proc = subprocess.Popen([os.path.join(appliPath, '.salome_run')] + args, close_fds=True) out, err = proc.communicate() return out, err, proc.returncode -- 2.39.2