CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
pfnInPath Namespace Reference

Functions

def pfnInPath
 

Function Documentation

def pfnInPath.pfnInPath (   name)

Definition at line 4 of file pfnInPath.py.

References submitPVValidationJobs.split().

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