CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
cfgName2py Namespace Reference

Functions

def cfgName2py
 

Function Documentation

def cfgName2py.cfgName2py (   cfgName)

Definition at line 4 of file cfgName2py.py.

References linker.replace().

Referenced by comments.loopfile().

4 
5 def cfgName2py(cfgName):
6  result = cfgName.replace("/data/","/python/").replace(".","_")
7  # do we want to automatically move all test configs to python/test?
8  # just do cffs and cfis for now
9  if result.endswith('.cff') or result.endswith('.cfi'):
10  result = result.replace("/test/", "/python/test/")
11  return result + '.py'
12 
# for shell-scripters who want a value printed
def replace
Definition: linker.py:10
def cfgName2py
Definition: cfgName2py.py:4