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 Relative to the binary directory.
37 Get the path to the sh
38 Relative to the binary
45 Get the path to shared objects and files provided by the user.
46 home/.local/share for Unix
53 Get the path to the configuration directory of the user.
54 home/.config/hal for Unix
61 Get the path to the default directory for log files.
62 If an hdl source file is provided, the function returns the parent directory, otherwise get_user_share_directory() / "log".
64 :param source_file: The hdl source file.
65 :type source_file: pathlib.Path
71 Get the paths where gate libraries are searched.
72 Contains the share and user share directories.
74 :returns: A list of paths.
75 :rtype: list[pathlib.Path]
79 Get the paths where plugins are searched.
80 Contains the library and user share directories.
82 :returns: A vector of paths.
void core_utils_init(py::module &m)
const Module * module(const Gate *g, const NodeBoxes &boxes)
std::filesystem::path get_user_share_directory()
std::filesystem::path get_share_directory()
std::vector< std::filesystem::path > get_gate_library_directories()
std::filesystem::path get_base_directory()
std::filesystem::path get_library_directory()
std::filesystem::path get_user_config_directory()
std::vector< std::filesystem::path > get_plugin_directories()
std::filesystem::path get_default_log_directory(std::filesystem::path source_file)
std::filesystem::path get_binary_directory()