mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
🐛 remove import
This commit is contained in:
parent
79a3777d86
commit
5a2e8f6d8f
1 changed files with 11 additions and 13 deletions
|
|
@ -40,19 +40,17 @@ def get_ocio_config_path(profile_folder):
|
|||
Returns:
|
||||
str: Path to vendorized config file.
|
||||
"""
|
||||
try:
|
||||
import OpenColorIOConfigs
|
||||
return os.path.join(
|
||||
os.environ["OPENPYPE_ROOT"],
|
||||
"vendor",
|
||||
"bin",
|
||||
"ocioconfig"
|
||||
"OpenColorIOConfigs",
|
||||
profile_folder,
|
||||
"config.ocio"
|
||||
)
|
||||
except ImportError:
|
||||
return None
|
||||
|
||||
return os.path.join(
|
||||
os.environ["OPENPYPE_ROOT"],
|
||||
"vendor",
|
||||
"bin",
|
||||
"ocioconfig"
|
||||
"OpenColorIOConfigs",
|
||||
profile_folder,
|
||||
"config.ocio"
|
||||
)
|
||||
|
||||
|
||||
def find_paths_by_hash(texture_hash):
|
||||
"""Find the texture hash key in the dictionary.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue