From 907a839ccc66b93dd94a5650496ef8d6d0f6c4df Mon Sep 17 00:00:00 2001 From: SRE Date: Fri, 5 May 2017 11:24:21 +0200 Subject: [PATCH] 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 --- commands/launcher.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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) ################################################## -- 2.39.2