Skip to content

Commit

Permalink
Make ArgumentParser global
Browse files Browse the repository at this point in the history
  • Loading branch information
Zehvogel committed Jul 28, 2023
1 parent e1ef940 commit 8135520
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions k4FWCore/scripts/k4run
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ if __name__ == "__main__":
handler.setFormatter(formatter)
logger.addHandler(handler)

global parser
parser = argparse.ArgumentParser(description="Run job in the Key4HEP framework")
parser.add_argument("config_files", type=open, action=LoadFromFile, nargs="*",
help="Gaudi config (python) files describing the job")
Expand Down

0 comments on commit 8135520

Please sign in to comment.