00001 import FWCore.ParameterSet.Config as cms 00002 import FWCore.ParameterSet.parseConfig as cmsParse 00003 from sys import argv 00004 00005 fileInPath = argv[1] 00006 00007 if fileInPath.endswith('cfg'): 00008 print cmsParse.dumpCfg(fileInPath) 00009 else: 00010 print cmsParse.dumpCff(fileInPath) 00011