Gaudi Framework, version v23r5

Home   Generated: Wed Nov 28 2012
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
EnvConfig.Variable.PathNormalizer Class Reference
Inheritance diagram for EnvConfig.Variable.PathNormalizer:
Inheritance graph
[legend]
Collaboration diagram for EnvConfig.Variable.PathNormalizer:
Collaboration graph
[legend]

Public Member Functions

def process
 
- Public Member Functions inherited from EnvConfig.Variable.VariableProcessor
def __init__
 
def isTarget
 
def process
 
def __call__
 

Detailed Description

Call os.path.normpath for all the entries of the variable.

Definition at line 93 of file Variable.py.

Member Function Documentation

def EnvConfig.Variable.PathNormalizer.process (   self,
  variable,
  value 
)

Definition at line 97 of file Variable.py.

97 
98  def process(self, variable, value):
99  if isinstance(value, str):
100  if '://' not in value: # this might be a URL
101  value = normpath(value)
102  else:
103  value = [normpath(v) for v in value if v]
104  return value

The documentation for this class was generated from the following file:
Generated at Wed Nov 28 2012 12:17:35 for Gaudi Framework, version v23r5 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004