Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
FWCore
ParameterSet
python
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])
cfgName2py.cfgName2py
def cfgName2py
Definition:
cfgName2py.py:4
cfgName2py
Definition:
cfgName2py.py:1
python.rootplot.root2matplotlib.replace
def replace
Definition:
root2matplotlib.py:443
Generated for CMSSW Reference Manual by
1.8.5