🐛 remove import

This commit is contained in:
Ondřej Samohel 2022-08-12 18:44:16 +02:00 committed by GitHub
parent 79a3777d86
commit 5a2e8f6d8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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