mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
♻️ change location of ocio configs
This commit is contained in:
parent
cd167a9055
commit
37ed6bc897
3 changed files with 131 additions and 712 deletions
|
|
@ -40,15 +40,15 @@ def get_ocio_config_path(profile_folder):
|
|||
Returns:
|
||||
str: Path to vendorized config file.
|
||||
"""
|
||||
return os.path.join(
|
||||
os.environ["OPENPYPE_ROOT"],
|
||||
"vendor",
|
||||
"configs",
|
||||
"OpenColorIO-Configs",
|
||||
profile_folder,
|
||||
"config.ocio"
|
||||
)
|
||||
|
||||
try:
|
||||
import OpenColorIOConfigs
|
||||
return os.path.join(
|
||||
os.path.dirname(OpenColorIOConfigs.__file__),
|
||||
profile_folder,
|
||||
"config.ocio"
|
||||
)
|
||||
except ImportError:
|
||||
return None
|
||||
|
||||
def find_paths_by_hash(texture_hash):
|
||||
"""Find the texture hash key in the dictionary.
|
||||
|
|
|
|||
821
poetry.lock
generated
821
poetry.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -70,6 +70,7 @@ requests = "^2.25.1"
|
|||
pysftp = "^0.2.9"
|
||||
dropbox = "^11.20.0"
|
||||
aiohttp-middlewares = "^2.0.0"
|
||||
OpenColorIO-Configs = { git = "https://github.com/pypeclub/OpenColorIO-Configs.git", branch = "main" }
|
||||
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
|
|
@ -80,13 +81,14 @@ cx_freeze = "~6.9"
|
|||
GitPython = "^3.1.17"
|
||||
jedi = "^0.13"
|
||||
Jinja2 = "^2.11"
|
||||
markupsafe = "2.0.1"
|
||||
pycodestyle = "^2.5.0"
|
||||
pydocstyle = "^3.0.0"
|
||||
pylint = "^2.4.4"
|
||||
pytest = "^6.1"
|
||||
pytest-cov = "*"
|
||||
pytest-print = "*"
|
||||
Sphinx = "*"
|
||||
Sphinx = "5.0.1"
|
||||
sphinx-rtd-theme = "*"
|
||||
sphinxcontrib-websupport = "*"
|
||||
sphinx-qt-documentation = "*"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue