#------------------------------------------------------------------#
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):