CMS 3D CMS Logo

cfg2py.py

Go to the documentation of this file.
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 

Generated on Tue Jun 9 17:36:26 2009 for CMSSW by  doxygen 1.5.4