else: if arg == '-h': print_help() exit(0) elif arg == '-v': print_version() exit(0) else: if is_pbs_number(arg): pbsNumber = arg else: report_error_arg_cmd(arg) exit(-1) config = JConfig() config.loadFromFile(configFile) print(os.getcwd()) print('loading config from ' + configFile) print(config.toString()) userName = config.get('user') password = config.get('password') if config.get('download-header') != None: downloadHeaders = str(config.get('download-header')) downloadHeaderList = downloadHeaders.split('|') if config.get('output-dir') != None: outputDir = config.get('output-dir')
def __init__(self): JConfig.__init__(self) self._id = User.GLOBAL_ID User.GLOBAL_ID += 1