tfep.utils.cli.tool.AbsolutePathOption

class tfep.utils.cli.tool.AbsolutePathOption(option_name)[source]

Bases: KeyValueOption

A file or directory path that is converted to an absolute path when instantiated.

Relative file paths change change with the current working directory. This option type converts relative paths to absolute paths when the option is assigned so that it refers to the same file even if the working directory is changed.

Parameters:

option_name (str) – The name of the option in the command line interface (e.g., '-o').

__init__(option_name)

Methods

__init__(option_name)

to_subprocess(owner_instance)

Implements CLIOption.to_subprocess().

to_subprocess(owner_instance)

Implements CLIOption.to_subprocess().