CMS 3D CMS Logo

Functions

cfgName2py Namespace Reference

Functions

def cfgName2py

Function Documentation

def cfgName2py::cfgName2py (   cfgName)

Definition at line 4 of file cfgName2py.py.

00005                        :
00006     result = cfgName.replace("/data/","/python/").replace(".","_")
00007     # do we want to automatically move all test configs to python/test?
00008     # just do cffs and cfis for now
00009     if result.endswith('.cff') or result.endswith('.cfi'):
00010         result = result.replace("/test/", "/python/test/")
00011     return result + '.py'
00012 
# for shell-scripters who want a value printed