diff --git a/[refs] b/[refs] index 6035ef305eb43..001b7ac16b7bf 100644 --- a/[refs] +++ b/[refs] @@ -1,3 +1,3 @@ --- refs/heads/gh-pages: 09c786f70121f131b3715aaf3464996502bbeb7e -"refs/heads/CMSSW_7_1_X": 6e1b9708ca52fe32b21a1c9c98678a24045674cf +"refs/heads/CMSSW_7_1_X": 8b520e214621569cd03dc7857a355f38e4f2c1f9 diff --git a/trunk/FWCore/ParameterSet/scripts/edmConfigEditor b/trunk/FWCore/ParameterSet/scripts/edmConfigEditor deleted file mode 100755 index f1bfa55994747..0000000000000 --- a/trunk/FWCore/ParameterSet/scripts/edmConfigEditor +++ /dev/null @@ -1,848 +0,0 @@ -#!/usr/bin/env python -import cmd -import readline -import os -import sys -import glob -import re -if "CMSSW_BASE" in os.environ.keys(): - sys.path.append(os.environ["CMSSW_BASE"]+"/src/FWCore/ParameterSet/test") -if "CMSSW_RELEASE_BASE" in os.environ.keys(): - sys.path.append(os.environ["CMSSW_RELEASE_BASE"]+"/src/FWCore/ParameterSet/test") - -import cmsconfig - -class BadLabelException: - def __init__(self,label): - self.label = label - return - -class PrintWrapper(object): - def __init__(self,stream): - self.__stream = stream - def write(self,info): - self.__stream.write(info) - def setStream(self,stream): - old = self.__stream - self.__stream = stream - return old - -class PrintIntercept: - def __init__(self): - self.__lastPrint = [] - def lastPrint(self): - return self.__lastPrint - def write(self,info): - self.__lastPrint.append(info) - def clear(self): - self.__lastPrint=[] - -class CmsBuilder(cmd.Cmd): - - def __init__(self,fileName): - #use this so we can intercept the output from the base class - self.__wrapper=PrintWrapper(sys.stdout) - cmd.Cmd.__init__(self,stdout=self.__wrapper) - readline.set_completer_delims(readline.get_completer_delims()+'.') - self.prompt = "[no file]>" - self.cfg = None - self._esModuleLabels = dict() - self._esSourceLabels = dict() - self.addedCommands = list() - r = re.compile('do_*') - self._builtInCommandNames = [x[3:] for x in CmsBuilder.__dict__.keys() if r.match(x)] - self._builtInCommandNames.sort() -# print self._builtInCommandNames - if 0 != len(fileName): - self.do__read(fileName) - - def do_help(self,line): - """Description: Show general help information - Commands: - help show all available commands - help show specific info about """ - if 0 != len(line): - cmd.Cmd.do_help(self,line) - else: - print "Standard commands: " - self.columnize(self._builtInCommandNames) - print "\nConfiguration file commands: " - r = re.compile('do_*') - extraCommands = self.addedCommands - extraCommands.sort() - self.columnize(extraCommands) - - def do_process(self,line): - """Description: Show the configuration for the process - Commands: - process print summary of the configuration process""" - if 0 == len(line): - if(self.cfg): - self.__print_process_summary() - else: - print "no configuration loaded" - - def __print_modules(self,line): - """List module labels in the configuration""" - if(self.cfg): - names = self.cfg.moduleNames() - names.sort() - self.columnize(names) - def do_module(self,line): - """Description: Show information about modules - Commands: - module list the labels for all modules - module