pytuflow.TCF.log_folder_path#
- TCF.log_folder_path(context=None)#
Returns the log folder path.
Returns the last instance of the command. If more than one Log Folder exists and some exist in IF logic blocks an exception will be raised if a context object is also not provided.
- Parameters:
context (Context, optional) – A context object to resolve the correct log folder directory. Not required unless more than one log folder command exists.
- Returns:
The log folder.
- Return type:
Path
- Raises:
ValueError – If the log folder cannot be determined.
Examples
>>> tcf = ... # assuming is an instance of TCF >>> tcf.log_folder_path() WindowsPath('./log')