]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
sat launcher: Put a relative link instead of an absolute link in the
authorSRE <serge.rehbinder@cea.fr>
Fri, 5 May 2017 09:24:21 +0000 (11:24 +0200)
committerSRE <serge.rehbinder@cea.fr>
Fri, 5 May 2017 09:24:21 +0000 (11:24 +0200)
profile directory. See
https://codev-tuleap.cea.fr/plugins/tracker/?aid=8637

commands/launcher.py

index b132187ba5b5f038d47f60d6ab830c198b8f62fb..9ce0987936ba5135d6cf58369b9faa84bbb9853f 100644 (file)
@@ -342,12 +342,12 @@ def finish_profile_install(config, launcherPath):
                 os.symlink(launcherPath, link_path)\r
 \r
         link_path = os.path.join(profile_dir, 'salome')\r
-        if not os.path.exists(link_path):\r
-            try:\r
-                os.symlink(launcherPath, link_path)\r
-            except OSError:\r
-                os.remove(link_path)\r
-                os.symlink(launcherPath, link_path)
+        relativeLauncherPath = "../../salome"\r
+        try:\r
+            os.symlink(relativeLauncherPath, link_path)\r
+        except OSError:\r
+            os.remove(link_path)\r
+            os.symlink(relativeLauncherPath, link_path)
 \r
 ##################################################\r
 \r