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