From: vsr Date: Fri, 24 Nov 2006 10:30:16 +0000 (+0000) Subject: Fix bug : if relative filename or directory is used it is not found by runInstall... X-Git-Tag: V_3_2_4~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=52172b2065f413773eb52f78942889b5fb51e2e7;p=tools%2Finstall.git Fix bug : if relative filename or directory is used it is not found by runInstall script --- diff --git a/runInstall b/runInstall index f5cf6d6..f2b6c48 100755 --- a/runInstall +++ b/runInstall @@ -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):