| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
EnvConfig.Variable.EmptyDirsRemover Class Reference
Inheritance diagram for EnvConfig.Variable.EmptyDirsRemover:
[legend]
Collaboration diagram for EnvConfig.Variable.EmptyDirsRemover:
[legend]

## Public Member Functions
def | process
Public Member Functions inherited from EnvConfig.Variable.ListProcessor
def | isTarget
Public Member Functions inherited from EnvConfig.Variable.VariableProcessor
def | __init__
def | isTarget
def | process
def | __call__

## Detailed Description

    Remove empty or not existing directories from lists.

Definition at line 121 of file Variable.py.

## Member Function Documentation

def EnvConfig.Variable.EmptyDirsRemover.process | ( |  | self,
|  |  | variable,
|  |  | value
| ) |  |

Definition at line 125 of file Variable.py.

125
126 def process(self, variable, value):
127 from os.path import isdir
128 from os import listdir
129 return [s for s in value if s.endswith('.zip') or (isdir(s) and listdir(s))]

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/cmake/EnvConfig/Variable.py