From: Gilles DAVID Date: Tue, 19 Sep 2017 14:37:51 +0000 (+0200) Subject: Fix launch of .salome_run X-Git-Tag: V8_4_0b1~2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fgdd_env_modules_in_config_appli;p=modules%2Fkernel.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