]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
using relative symbolic link to create virtual appli duc/fix_symlink_for_appli
authorDUC ANH HOANG <duc-anh-externe.hoang@edf.fr>
Tue, 7 Sep 2021 08:56:55 +0000 (10:56 +0200)
committerDUC ANH HOANG <duc-anh-externe.hoang@edf.fr>
Tue, 7 Sep 2021 08:56:55 +0000 (10:56 +0200)
bin/virtual_salome.py

index b800edde2e2fb89bb82bddc04ce5a1f1dbf4a60d..d6fe376fc893e73991251955d23d73cc03f827d9 100755 (executable)
@@ -63,7 +63,7 @@ def symlink(src, dest):
         if verbose:
             print('Creating symlink %s' % dest)
             pass
-        os.symlink(src, dest)
+        os.symlink(os.path.relpath(src,os.path.dirname(dest)), dest)
     else:
         if verbose:
             print('Symlink %s already exists' % dest)