Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Aug 10, 2022
1 parent f03e635 commit 8858377
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openpype/pipeline/workfile/path_resolving.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ def get_last_workfile_with_version(
if not os.path.exists(workdir):
return None, None


dotted_extensions = set()
for ext in extensions:
if not ext.startswith("."):
Expand All @@ -227,7 +226,7 @@ def get_last_workfile_with_version(
filenames = [
filename
for filename in os.listdir(workdir)
if os.path.splitext(filename)[1] in dotted_extensions
if os.path.splitext(filename)[-1] in dotted_extensions
]

# Build template without optionals, version to digits only regex
Expand Down

0 comments on commit 8858377

Please sign in to comment.