From: SRE Date: Fri, 5 May 2017 09:24:21 +0000 (+0200) Subject: sat launcher: Put a relative link instead of an absolute link in the X-Git-Tag: V8_3_0rc1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=907a839ccc66b93dd94a5650496ef8d6d0f6c4df;p=tools%2Fsat.git sat launcher: Put a relative link instead of an absolute link in the profile directory. See https://codev-tuleap.cea.fr/plugins/tracker/?aid=8637 --- diff --git a/commands/launcher.py b/commands/launcher.py index b132187..9ce0987 100644 --- a/commands/launcher.py +++ b/commands/launcher.py @@ -342,12 +342,12 @@ def finish_profile_install(config, launcherPath): os.symlink(launcherPath, link_path) link_path = os.path.join(profile_dir, 'salome') - if not os.path.exists(link_path): - try: - os.symlink(launcherPath, link_path) - except OSError: - os.remove(link_path) - os.symlink(launcherPath, link_path) + relativeLauncherPath = "../../salome" + try: + os.symlink(relativeLauncherPath, link_path) + except OSError: + os.remove(link_path) + os.symlink(relativeLauncherPath, link_path) ##################################################