♻️ change location of ocio configs

This commit is contained in:
Ondrej Samohel 2022-08-11 18:02:21 +02:00
parent cd167a9055
commit 37ed6bc897
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
3 changed files with 131 additions and 712 deletions

View file

@ -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

File diff suppressed because it is too large Load diff

View file

@ -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 = "*"