revrt.utilities.base.file_full_path#

file_full_path(file_name, *layer_dirs)[source]#

Get full path to file, searching layer_dirs if needed

Parameters:
  • file_name (str) – File name to get full path for. If just the file name is provided, the class layer_dir attribute value is prepended to get the full path.

  • *layer_dirs (path-like) – Directories to search for file if not found in current directory.

Returns:

path-like – Full path to file.

Raises:

revrtFileNotFoundError – If file cannot be found in either the current directory or any of the layer_dirs directories.