From: Gilles DAVID Date: Tue, 19 Sep 2017 14:37:51 +0000 (+0200) Subject: Fix launch of .salome_run X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c0fd3291e43706922bad49a75a8339024bb6b9b5;p=modules%2Fyacs.git Fix launch of .salome_run Using the cwd param in subprocess.Popen changes the current directory, which is not what we want. --- 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