mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Update pype/lib.py
precompile regex Co-Authored-By: Ondřej Samohel <33513211+antirotor@users.noreply.github.com>
This commit is contained in:
parent
7d48a0322d
commit
fe5733771a
1 changed files with 2 additions and 1 deletions
|
|
@ -1205,8 +1205,9 @@ def get_last_workfile_path(root, template, file_ext):
|
|||
|
||||
version = None
|
||||
last_file_name = None
|
||||
re_template = re.compile(template)
|
||||
for file_name in sorted(filtered_file_names):
|
||||
match = re.match(template, file_name, **kwargs)
|
||||
match = re.match(re_template, file_name, **kwargs)
|
||||
if not match:
|
||||
continue
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue