Merge pull request #1271 from pypeclub/bugfix/missing_openpype_root_from_pythonpath

add openpype_root to pythonpath
This commit is contained in:
Milan Kolar 2021-04-09 10:32:07 +02:00 committed by GitHub
commit a390a55428
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -8,7 +8,7 @@ on:
branches: [develop]
types: [review_requested, ready_for_review]
paths-ignore:
- 'docs/**',
- 'docs/**'
- 'website/**'
- 'vendor/**'

View file

@ -326,6 +326,7 @@ def _initialize_environment(openpype_version: OpenPypeVersion) -> None:
# TODO move additional paths to `boot` part when OPENPYPE_ROOT will point
# to same hierarchy from code and from frozen OpenPype
additional_paths = [
os.environ["OPENPYPE_ROOT"],
# add OpenPype tools
os.path.join(os.environ["OPENPYPE_ROOT"], "openpype", "tools"),
# add common OpenPype vendor