ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/writeCfg.py
(Generate patch)

Comparing COMP/CRAB/python/writeCfg.py (file contents):
Revision 1.12 by ewv, Thu Aug 7 16:00:42 2008 UTC vs.
Revision 1.13 by ewv, Mon Aug 18 15:30:43 2008 UTC

# Line 4 | Line 4
4   Re-write config file and optionally convert to python
5   """
6  
7 + __revision__ = "$Id$"
8 + __version__ = "$Revision$"
9 +
10   import sys, getopt
11   import imp
12   import os
# Line 215 | Line 218 | def main(argv) :
218              print "import FWCore.ParameterSet.Config as cms"
219              print cmsProcess.dumpPython()
220      else:
221 <        outFile.write(str(cfg))
221 >        outFile.write(cfg.data.dumpConfig())
222          if (debug):
223              print "writeCfg output:"
224 <            print str(cfg)
224 >            print str(cfg.data.dumpConfig())
225      outFile.close()
226  
227  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines