From: Gilles DAVID Date: Wed, 5 Oct 2022 09:26:50 +0000 (+0200) Subject: getAppliPath does not provide relpath: we can use the os.path.relpath function X-Git-Tag: emc2p_1.3.7-rc1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c39f8ea2beef857618cd2e60136d7e54ff53ef86;p=modules%2Fkernel.git getAppliPath does not provide relpath: we can use the os.path.relpath function --- diff --git a/bin/appliskel/kill_remote_containers.py b/bin/appliskel/kill_remote_containers.py index 189398220..a15020e63 100755 --- a/bin/appliskel/kill_remote_containers.py +++ b/bin/appliskel/kill_remote_containers.py @@ -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] diff --git a/bin/appliskel/update_catalogs.py b/bin/appliskel/update_catalogs.py index 50329d74b..136565bdd 100755 --- a/bin/appliskel/update_catalogs.py +++ b/bin/appliskel/update_catalogs.py @@ -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: