mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
missing allowed_exts issue and unit tests fix
This commit is contained in:
parent
a14464331f
commit
b0ae4257f9
1 changed files with 4 additions and 1 deletions
|
|
@ -27,6 +27,9 @@ class CachedData:
|
|||
has_compatible_ocio_package = None
|
||||
config_version_data = {}
|
||||
ocio_config_colorspaces = {}
|
||||
allowed_exts = {
|
||||
ext.lstrip(".") for ext in IMAGE_EXTENSIONS.union(VIDEO_EXTENSIONS)
|
||||
}
|
||||
|
||||
|
||||
class DeprecatedWarning(DeprecationWarning):
|
||||
|
|
@ -361,7 +364,7 @@ def parse_colorspace_from_filepath(
|
|||
|
||||
# match colorspace from filepath
|
||||
regex_pattern = _get_colorspace_match_regex(
|
||||
colorspaces + underscored_colorspaces.keys())
|
||||
list(colorspaces) + list(underscored_colorspaces))
|
||||
match = regex_pattern.search(filepath)
|
||||
colorspace = match.group(0) if match else None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue