Functions | |
def | getNamespaceDict |
parsing the LCGDict namespace and build dictionary (quick'n'dirty solution) benedikt.hegner@cern.ch
def python::namespaceDict::getNamespaceDict | ( | ) |
Definition at line 11 of file namespaceDict.py.
00012 : 00013 00014 # execute SealPluginDump to get list of plugins 00015 process = popen2.Popen3('SealPluginDump') 00016 output = process.fromchild.read() 00017 00018 namespaceDict = {} 00019 00020 for line in output.split('\n'): 00021 # search for Reflex, global namespace and non templates 00022 if line.find('Reflex') !=-1 and line.find(':') ==-1 and line.find('<') ==-1: 00023 className = line.replace('LCGReflex/', '').strip() 00024 namespaceDict[className] = line.strip() 00025 00026 return namespaceDict