EnvConfig.Variable.PathNormalizer Class Reference
Inheritance diagram for EnvConfig.Variable.PathNormalizer:
Collaboration diagram for EnvConfig.Variable.PathNormalizer:

Public Member Functions

def process (self, variable, value)
 
- Public Member Functions inherited from EnvConfig.Variable.VariableProcessor
def __init__ (self, env)
 
def isTarget (self, variable)
 
def process (self, variable, value)
 
def __call__ (self, variable, value)
 

Detailed Description

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

Definition at line 98 of file Variable.py.

Member Function Documentation

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

Definition at line 102 of file Variable.py.

102  def process(self, variable, value):
103  if not value: # do not process empty strings/lists
104  return value
105  if isinstance(value, str):
106  if '://' not in value: # this might be a URL
107  value = normpath(value)
108  else:
109  value = [normpath(v) for v in value if v]
110  return value
111 
def process(self, variable, value)
Definition: Variable.py:102

The documentation for this class was generated from the following file: