mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 09:48:41 +00:00
Add warning that api.run is deprecated
This commit is contained in:
@@ -82,6 +82,7 @@ def run(
|
|||||||
should_run_listeners: bool = True,
|
should_run_listeners: bool = True,
|
||||||
**settings: Any,
|
**settings: Any,
|
||||||
) -> Any:
|
) -> Any:
|
||||||
|
"""This is deprecated and will be removed in a future version. Do not use this function."""
|
||||||
usecase_function = CACHED_USECASES.get(usecase_path)
|
usecase_function = CACHED_USECASES.get(usecase_path)
|
||||||
if not usecase_function:
|
if not usecase_function:
|
||||||
importlib.import_module(f"ifcopenshell.api.{usecase_path}")
|
importlib.import_module(f"ifcopenshell.api.{usecase_path}")
|
||||||
|
|||||||
Reference in New Issue
Block a user