reversing order for underscored first

This commit is contained in:
Jakub Jezek 2023-09-21 17:20:57 +02:00
parent 6e7cde73be
commit d045b83223
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -365,12 +365,12 @@ def parse_colorspace_from_filepath(
match = regex_pattern.search(filepath)
colorspace = match.group(0) if match else None
if colorspace:
return colorspace
if colorspace in underscored_colorspaces:
return underscored_colorspaces[colorspace]
if colorspace:
return colorspace
log.info("No matching colorspace in config '{}' for path: '{}'".format(
config_path, filepath
))