]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
CCAR: improve getAppliPath.py to handle HOME directories with symbolic links
authorcaremoli <caremoli>
Tue, 9 Feb 2010 10:21:07 +0000 (10:21 +0000)
committercaremoli <caremoli>
Tue, 9 Feb 2010 10:21:07 +0000 (10:21 +0000)
bin/appliskel/getAppliPath.py

index d946c57ec24da7fec3b1d762729deaca97b251db..dca96b004766a1000ea1153c81db8c8881fd10e8 100755 (executable)
@@ -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