mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +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,
|
||||
**settings: 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)
|
||||
if not usecase_function:
|
||||
importlib.import_module(f"ifcopenshell.api.{usecase_path}")
|
||||
|
||||
Reference in New Issue
Block a user