path_tools (method)

importName(modulename, name, ignore_error=False)[source]

Import a named object from a module in the context of this function.

rel_file_path(file, wildcard)[source]

try to generate relative file path with given wildcard

abs_file_path(file, is_check=True)[source]

check a file path for a wildcard and replace it to get the abs path

exception FileError[source]

Bases: Exception

Raised when the file does not exists

exception ImportError[source]

Bases: Exception

Raised when the path could not be imported