mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
fixed dotted extensions
This commit is contained in:
parent
939955339c
commit
f03e63502e
1 changed files with 7 additions and 5 deletions
|
|
@ -216,11 +216,13 @@ def get_last_workfile_with_version(
|
|||
if not os.path.exists(workdir):
|
||||
return None, None
|
||||
|
||||
dotted_extensions = {
|
||||
".{}".format(ext)
|
||||
for ext in extensions
|
||||
if not ext.startswith(".")
|
||||
}
|
||||
|
||||
dotted_extensions = set()
|
||||
for ext in extensions:
|
||||
if not ext.startswith("."):
|
||||
ext = ".{}".format(ext)
|
||||
dotted_extensions.add(ext)
|
||||
|
||||
# Fast match on extension
|
||||
filenames = [
|
||||
filename
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue