def __init__(self): RunCommand.__init__(self, args_usage="<variants-file> [<variants-file> ...]", epilog=PROJECT_EPILOG) self.variants_files = [] # Gather variants files from arguments for var_file in self.args.files: if not os.path.isabs(var_file): var_file = os.path.join(os.getcwd(), var_file) if not os.path.exists(var_file): self.log.error("Variants file not found: {}".format(var_file)) exit(-1) if not os.path.isfile(var_file): self.log.error("A file is expected: {}".format(var_file)) exit(-1) self.variants_files += [var_file] # Get project id if self.args.project_id is None: self.log.error("Project identifier not specified.") exit(-1) self.project_id = normalize_id(self.args.project_id)
def __init__(self): RunCommand.__init__(self, args_usage = "<projects-path> [<projects-path> ...]", epilog = PROJECT_EPILOG) self.scan_paths = [] # Gather scan paths from arguments for scan_path in self.args.paths: if not os.path.isabs(scan_path): scan_path = os.path.join(os.getcwd(), scan_path) if not os.path.exists(scan_path): self.log.error("Path not found: {}".format(scan_path)) exit(-1) self.scan_paths += [scan_path]
def __init__(self): RunCommand.__init__(self, args_usage="<projects-path> [<projects-path> ...]", epilog=PROJECT_EPILOG)