-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More schema 219 -> 300 plugin refactoring - structure control forms a…
…nd logic.
- Loading branch information
Showing
8 changed files
with
117 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright (C) 2025 by Lutra Consulting | ||
import os | ||
import sys | ||
|
||
MAIN_DIR = os.path.dirname(os.path.abspath(__file__)) | ||
REQUIRED_3DI_SCHEMA_VERSION = "0.230.0.dev0" | ||
REQUIRED_3DI_MI_UTILS_VERSION = "0.1.5" | ||
THREEDI_SCHEMA_WHEEL = os.path.join(MAIN_DIR, f"threedi_schema-{REQUIRED_3DI_SCHEMA_VERSION}-py3-none-any.whl") | ||
MI_UTILS_WHEEL = os.path.join(MAIN_DIR, f"threedi_mi_utils-{REQUIRED_3DI_MI_UTILS_VERSION}-py3-none-any.whl") | ||
|
||
|
||
def patch_wheel_imports(): | ||
""" | ||
Function that tests if extra modules are installed. | ||
If modules are not available then it will add missing modules wheels to the Python path. | ||
""" | ||
try: | ||
import threedi_schema | ||
except ImportError: | ||
deps_path = THREEDI_SCHEMA_WHEEL | ||
sys.path.append(deps_path) | ||
|
||
try: | ||
import threedi_mi_utils | ||
except ImportError: | ||
deps_path = MI_UTILS_WHEEL | ||
sys.path.append(deps_path) |
Binary file added
BIN
+19.8 KB
threedi_schematisation_editor/deps/threedi_mi_utils-0.1.5-py3-none-any.whl
Binary file not shown.
Binary file added
BIN
+97.8 KB
threedi_schematisation_editor/deps/threedi_schema-0.230.0.dev0-py3-none-any.whl
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters