Warning, /FWCore/ParameterSet/scripts/edmPythonTree is written in an unsupported language. File is not indexed.
0001 #! /usr/bin/env python3
0002
0003 from FWCore.ParameterSet.TreeCrawler import getImportTree
0004 import sys, os
0005
0006 from argparse import ArgumentParser
0007 parser = ArgumentParser()
0008 parser.add_argument("config_file",type=str)
0009 options = parser.parse_args()
0010
0011 sys.path.append(os.environ["PWD"])
0012 path = sys.path[:]
0013
0014 # get the dependencies
0015 importTree = getImportTree(options.config_file, path)
0016
0017 # finally dump the tree
0018 importTree.dump(0)