Skip to content

Commit 103a634

Browse files
committed
Update example to consume files from the cloned branch
1 parent 355fb0b commit 103a634

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed
Binary file not shown.
Binary file not shown.

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,13 @@
5353
"gltf_plugin/texture.png",
5454
"gltf_plugin.xml",
5555
]
56+
import os
57+
folder_root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
58+
source_path_in_repo = r"docs\source\examples\07-python-operators\plugins"
5659
plugin_path = None
57-
GITHUB_SOURCE_URL = (
58-
"https://github.com/pyansys/pydpf-core/raw/"
59-
""
60-
"examples/first_python_plugins/python_plugins"
61-
)
6260

6361
for file in file_list:
64-
EXAMPLE_FILE = GITHUB_SOURCE_URL + "/gltf_plugin/" + file
65-
operator_file_path = examples.downloads._retrieve_file(
66-
EXAMPLE_FILE, file, os.path.join("python_plugins", os.path.dirname(file))
67-
)
62+
operator_file_path = os.path.join(folder_root, source_path_in_repo, file)
6863

6964
print(f"\033[1m {file}\n \033[0m")
7065
if (

0 commit comments

Comments
 (0)