test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
cfgName2py.py
Go to the documentation of this file.
1 #!/bin/env python
2 #
3 from sys import argv
4 def cfgName2py(cfgName):
5  result = cfgName.replace("/data/","/python/").replace(".","_")
6  # do we want to automatically move all test configs to python/test?
7  # just do cffs and cfis for now
8  if result.endswith('.cff') or result.endswith('.cfi'):
9  result = result.replace("/test/", "/python/test/")
10  return result + '.py'
11 
12 # for shell-scripters who want a value printed
13 if __name__=="__main__":
14  if len(argv) == 2:
15  print cfgName2py(argv[1])
def cfgName2py
Definition: cfgName2py.py:4