Package SCons :: Package Variables :: Module PathVariable' :: Class _PathVariableClass
[hide private]
[frames] | no frames]

Class _PathVariableClass

source code

object --+
         |
        _PathVariableClass

Instance Methods [hide private]
 
PathAccept(self, key, val, env)
Accepts any path, no checking done.
source code
 
PathExists(self, key, val, env)
validator to check if Path exists
source code
 
PathIsDir(self, key, val, env)
Validator to check if Path is a directory.
source code
 
PathIsDirCreate(self, key, val, env)
Validator to check if Path is a directory, creating it if it does not exist.
source code
 
PathIsFile(self, key, val, env)
validator to check if Path is a file
source code
 
__call__(self, key, help, default, validator=None)
The input parameters describe a 'path list' option, thus they are returned with the correct converter and validator appended. The result is usable for input to opts.Add() .
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, key, help, default, validator=None)
(Call operator)

source code 

The input parameters describe a 'path list' option, thus they are returned with the correct converter and validator appended. The result is usable for input to opts.Add() .

The 'default' option specifies the default path to use if the user does not specify an override with this option.

validator is a validator, see this file for examples