]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
getAppliPath does not provide relpath: we can use the os.path.relpath function emc2p/BR_V1_3_6
authorGilles DAVID <gilles-g.david@edf.fr>
Wed, 5 Oct 2022 09:26:50 +0000 (11:26 +0200)
committerGilles DAVID <gilles-g.david@edf.fr>
Wed, 5 Oct 2022 09:26:50 +0000 (11:26 +0200)
bin/appliskel/kill_remote_containers.py
bin/appliskel/update_catalogs.py

index 1893982203ee8a7a6da36b50185694626c0d773a..a15020e63fff348f41e5e37e46b21a55f5806942 100755 (executable)
@@ -28,9 +28,8 @@ import sys,os,shutil,glob,socket
 import argparse
 from salome_utils import getUserName
 
-import getAppliPath
 appli_local=os.path.realpath(os.path.dirname(__file__))
-APPLI=getAppliPath.relpath(appli_local,os.path.realpath(os.path.expanduser("~")))
+APPLI=os.path.relpath(appli_local,os.path.realpath(os.path.expanduser("~")))
 
 usage="""%(prog)s [options]
 
index 50329d74b86ef5f5d53ab6a33cd8747cd28065a5..136565bdd78d8dd88d39e2dc4bbe4f562f101ebe 100755 (executable)
@@ -28,9 +28,8 @@ import sys,os,shutil,glob,socket
 import argparse
 from salome_utils import getUserName
 
-import getAppliPath
 appli_local=os.path.realpath(os.path.dirname(__file__))
-APPLI=getAppliPath.relpath(appli_local,os.path.realpath(os.path.expanduser("~")))
+APPLI=os.path.relpath(appli_local,os.path.realpath(os.path.expanduser("~")))
 
 usage="""%(prog)s [options]
 Typical use is: