Functions
processFromFile Namespace Reference
Functions
def
processFromFile
Function Documentation
◆
processFromFile()
def processFromFile.processFromFile
(
filename
)
Definition at line
5
of file
processFromFile.py
.
5
def
processFromFile
(filename:str, args=
None
):
6
old_sys_argv =
None
7
if
args
is
not
None
:
8
old_sys_argv = sys.argv[:]
9
sys.argv = [filename]+args
10
11
loader = SourceFileLoader(
"pycfg"
, filename)
12
mod = types.ModuleType(loader.name)
13
loader.exec_module(mod)
14
process = mod.process
15
16
if
old_sys_argv
is
not
None
:
17
sys.argv = old_sys_argv
18
19
return
process
20
processFromFile.processFromFile
def processFromFile
Definition:
processFromFile.py:5
Generated for CMSSW Reference Manual by
1.8.14