Skip to content

Commit f704dc6

Browse files
committed
Update example and remove gltf sites for Windows
1 parent c5cf729 commit f704dc6

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed
Binary file not shown.

examples/07-python-operators/02-python_operators_with_dependencies.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"gltf_plugin.xml",
5555
]
5656
import os
57+
5758
folder_root = os.path.dirname(
5859
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
5960
)
@@ -131,10 +132,7 @@
131132
if os.name == "nt" and not os.path.exists(
132133
os.path.join(plugin_path, "assets", "gltf_sites_winx64.zip")
133134
):
134-
CMD_FILE_URL = GITHUB_SOURCE_URL + "/create_sites_for_python_operators.ps1"
135-
cmd_file = examples.downloads._retrieve_file(
136-
CMD_FILE_URL, "create_sites_for_python_operators.ps1", "python_plugins"
137-
)
135+
cmd_file = os.path.join(folder_root, "docs", "source", "user_guide", "create_sites_for_python_operators.ps1")
138136
args = [
139137
"powershell",
140138
cmd_file,
@@ -159,10 +157,7 @@
159157
elif os.name == "posix" and not os.path.exists(
160158
os.path.join(plugin_path, "assets", "gltf_sites_linx64.zip")
161159
):
162-
CMD_FILE_URL = GITHUB_SOURCE_URL + "/create_sites_for_python_operators.sh"
163-
cmd_file = examples.downloads._retrieve_file(
164-
CMD_FILE_URL, "create_sites_for_python_operators.ps1", "python_plugins"
165-
)
160+
cmd_file = os.path.join(folder_root, "docs", "source", "user_guide", "create_sites_for_python_operators.sh")
166161
run_cmd = f"{cmd_file}"
167162
args = (
168163
f' -pluginpath "{plugin_path}" '

0 commit comments

Comments
 (0)