DirFullPaths
- class lib.cli.actions.DirFullPaths(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None, deprecated=False)
Bases:
_FullPathsAdds support for a Directory browser in the GUI.
This is a standard
argparse.Action(with stock parameters) which indicates to the GUI that a dialog box should be opened in order to browse for a folder.No additional parameters are required.
Example
>>> argument_list = [] >>> argument_list.append(dict( >>> opts=("-f", "--folder_location"), >>> action=DirFullPaths)),
Methods Summary
__call__(parser, namespace, values[, ...])Call self as a function.
Methods Documentation
- __call__(parser, namespace, values, option_string=None) None
Call self as a function.
- Return type:
None
- format_usage()