pyleecan.Functions.path_tools module

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

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

rel_file_path(file_path, wildcard)[source]

try to generate relative file path with given wildcard

abs_file_path(file_path, 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