From: caremoli Date: Tue, 9 Feb 2010 10:21:07 +0000 (+0000) Subject: CCAR: improve getAppliPath.py to handle HOME directories with symbolic links X-Git-Tag: V5_1_4a1~46 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6efd74c6d2123ababc0da2ed6d0a50d4126ce4f4;p=modules%2Fkernel.git CCAR: improve getAppliPath.py to handle HOME directories with symbolic links --- diff --git a/bin/appliskel/getAppliPath.py b/bin/appliskel/getAppliPath.py index d946c57ec..dca96b004 100755 --- a/bin/appliskel/getAppliPath.py +++ b/bin/appliskel/getAppliPath.py @@ -50,7 +50,7 @@ def set_var(VAR, strpath): return "export %s=%s" % (VAR, value) -applipath=relpath(os.path.abspath(os.path.dirname(__file__)),os.path.abspath(os.getenv('HOME'))) +applipath=relpath(os.path.realpath(os.path.dirname(__file__)),os.path.realpath(os.getenv('HOME'))) #print set_var('APPLI', applipath) print applipath