mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
don't look for repos directory in add_paths_from_directory
This commit is contained in:
parent
db10343a29
commit
38d93c1b46
2 changed files with 2 additions and 17 deletions
|
|
@ -1094,24 +1094,8 @@ class BootstrapRepos:
|
|||
directory (Path): path to directory.
|
||||
|
||||
"""
|
||||
|
||||
sys.path.insert(0, directory.as_posix())
|
||||
directory /= "repos"
|
||||
if not directory.exists() and not directory.is_dir():
|
||||
return
|
||||
|
||||
roots = []
|
||||
for item in directory.iterdir():
|
||||
if item.is_dir():
|
||||
root = item.as_posix()
|
||||
if root not in roots:
|
||||
roots.append(root)
|
||||
sys.path.insert(0, root)
|
||||
|
||||
pythonpath = os.getenv("PYTHONPATH", "")
|
||||
paths = pythonpath.split(os.pathsep)
|
||||
paths += roots
|
||||
|
||||
os.environ["PYTHONPATH"] = os.pathsep.join(paths)
|
||||
|
||||
@staticmethod
|
||||
def find_openpype_version(version, staging):
|
||||
|
|
|
|||
1
start.py
1
start.py
|
|
@ -824,6 +824,7 @@ def _bootstrap_from_code(use_version, use_staging):
|
|||
os.environ["OPENPYPE_REPOS_ROOT"] = _openpype_root
|
||||
|
||||
# add self to sys.path of current process
|
||||
# NOTE: this seems to be duplicate of 'add_paths_from_directory'
|
||||
sys.path.insert(0, _openpype_root)
|
||||
# add venv 'site-packages' to PYTHONPATH
|
||||
python_path = os.getenv("PYTHONPATH", "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue