gpf_agent_rok4.constants module

Static objects and variables.

gpf_agent_rok4.constants.arg_type_path_folder(input_path: Path | str) Path

Check an argparse argument type, expecting a valid folder path.

Paramètres:

input_path (Union[Path, str]) – path to check as string or pathlib.Path

Lève:
  • ArgumentTypeError – if the input path is not a valid type or not a folder or

  • doesn't exist.

Renvoie:

_description_

Type renvoyé:

Union[Path, ArgumentTypeError]