]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Fix bug : if relative filename or directory is used it is not found by runInstall...
authorvsr <vsr@opencascade.com>
Fri, 24 Nov 2006 10:30:16 +0000 (10:30 +0000)
committervsr <vsr@opencascade.com>
Fri, 24 Nov 2006 10:30:16 +0000 (10:30 +0000)
runInstall

index f5cf6d6032b76982715330b8977bd8add87b727d..f2b6c4880da97cab3bbc36df8d557be7e3806728 100755 (executable)
@@ -860,10 +860,13 @@ def get_tmp_dir(dir):
 #------------------------------------------------------------------#
     
 if __name__ == "__main__":
-    # get program dir
-    cur_dir = get_program_path()
     # parse command line
     [xml_file, target_dir, tmp_dir, is_gui] = parse_parameters()
+    if xml_file:   xml_file   = os.path.abspath(xml_file)
+    if target_dir: target_dir = os.path.abspath(target_dir)
+    if tmp_dir:    tmp_dir    = os.path.abspath(tmp_dir)
+    # get program dir
+    cur_dir = get_program_path()
 
     # define xml file to be used
     if (xml_file is None):