示例#1
0
def file_validator(optdict, name, value):
    """validate and return a filepath for option of type 'file'"""
    return optparse.check_file(None, name, value)
示例#2
0
def file_validator(optdict, name, value):
    """validate and return a filepath for option of type 'file'"""
    return optparse.check_file(None, name, value)