7 auto py_core_utils = m.def_submodule(
"CoreUtils", R
"(
8 HAL Core Utility functions.
12 Get the path to the executable of HAL.
19 Get the base path to the HAL installation.
20 1. Use Environment Variable HAL_BASE_PATH
21 2. If current executable is hal (not e.g. python3 interpreter) use it's path to determine base path.
22 3. Try to find hal executable in path and use its base path.
29 Get the path to the shared and static libraries of HAL.
30 The resulting path is relative to the binary directory.
37 Get the path to the shared objects of HAL.
38 The resulting path is relative to the binary directory.
45 Get the path to shared objects and files provided by the user.
46 This is ``~/.local/share/hal`` on Unix.
53 Get the path to the configuration directory of the user.
54 This is ``~/.config/hal`` on Unix.
61 Get the path to the default directory for log files.
62 If a netlist source file is provided, the function returns the parent directory, otherwise ``get_user_share_directory() / "log"``.
64 :param pathlib.Path source_file: The netlist source file.
70 Get the paths to the locations where gate libraries are searched.
71 Contains the share and user share directories.
73 :returns: A list of paths.
74 :rtype: list[pathlib.Path]
78 Get the paths to the locations where plugins are searched.
79 Contains the library and user share directories.
81 :returns: A list of paths.
82 :rtype: list[pathlib.Path]
void core_utils_init(py::module &m)
const Module * module(const Gate *g, const NodeBoxes &boxes)
std::filesystem::path get_share_directory()
std::filesystem::path get_library_directory()
std::filesystem::path get_default_log_directory(std::filesystem::path source_file="")
std::filesystem::path get_base_directory()
std::filesystem::path get_binary_directory()
std::vector< std::filesystem::path > get_plugin_directories()
std::vector< std::filesystem::path > get_gate_library_directories()
std::filesystem::path get_user_share_directory()
std::filesystem::path get_user_config_directory()