From c39f8ea2beef857618cd2e60136d7e54ff53ef86 Mon Sep 17 00:00:00 2001 From: Gilles DAVID Date: Wed, 5 Oct 2022 11:26:50 +0200 Subject: [PATCH] getAppliPath does not provide relpath: we can use the os.path.relpath function --- bin/appliskel/kill_remote_containers.py | 3 +-- bin/appliskel/update_catalogs.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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: -- 2.39.2