From: uhz Date: Wed, 18 Jul 2018 13:15:52 +0000 (+0200) Subject: Good appliPath even if we launch Salome from a symbolic link X-Git-Tag: SHAPER_V9_1_0RC1~7^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c87ac5c7ff5e2b14a13805a8839ca80bfa00f963;p=modules%2Fkernel.git Good appliPath even if we launch Salome from a symbolic link --- diff --git a/bin/appliskel/salome b/bin/appliskel/salome index 3bd95d620..e397ba801 100755 --- a/bin/appliskel/salome +++ b/bin/appliskel/salome @@ -20,7 +20,7 @@ def main(args): env_modules_option += "%s" % ','.join(env_modules) args.append(env_modules_option) - appliPath = os.path.realpath(os.path.dirname(os.path.abspath(__file__))) + appliPath = os.path.dirname(os.path.realpath(__file__)) proc = subprocess.Popen([os.path.join(appliPath, '.salome_run')] + args, close_fds=True) out, err = proc.communicate() sys.exit(proc.returncode)