CMS 3D CMS Logo

Functions
pfnInPath Namespace Reference

Functions

def pfnInPath (name)
 

Function Documentation

◆ pfnInPath()

def pfnInPath.pfnInPath (   name)

Definition at line 4 of file pfnInPath.py.

4 def pfnInPath(name):
5  for path in os.environ['CMSSW_SEARCH_PATH'].split(':'):
6  fn = os.path.join(path, name)
7  if os.path.isfile(fn):
8  return 'file:' + fn
9 
10  raise IOError("No such file or directory '%s' in the CMSSW_SEARCH_PATH" % name)
11 
12 
13 cms.pfnInPath = lambda name: cms.string(pfnInPath(name))
14 cms.untracked.pfnInPath = lambda name: cms.untracked.string(pfnInPath(name))
15 cms.pfnInPaths = lambda *names: cms.vstring(pfnInPath(name) for name in names)
16 cms.untracked.pfnInPaths = lambda *names: cms.untracked.vstring(pfnInPath(name) for name in names)

References submitPVValidationJobs.split().

submitPVValidationJobs.split
def split(sequence, size)
Definition: submitPVValidationJobs.py:352
pfnInPath
Definition: pfnInPath.py:1
pfnInPath.pfnInPath
def pfnInPath(name)
Definition: pfnInPath.py:4