Logo Search packages:      
Sourcecode: abakus version File versions  Download package

PathOption.py

__all__=('PathOption',)
import os
import SCons.Errors
def _validator(key, val, env):
    if not os.path.exists(val):
        raise SCons.Errors.UserError(
            'Path does not exist for option %s: %s' % (key, val))
def PathOption(key, help, default):
    return (key, '%s ( /path/to/%s )' % (help, key), default, _validator, None)

Generated by  Doxygen 1.6.0   Back to index