mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
get last version string from path
This changes get_version_from_path() to produce the same result as version_up
This commit is contained in:
parent
30226cb0c8
commit
7d37971d64
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ def get_version_from_path(file):
|
|||
"""
|
||||
pattern = re.compile(r"[\._]v([0-9]+)", re.IGNORECASE)
|
||||
try:
|
||||
return pattern.findall(file)[0]
|
||||
return pattern.findall(file)[-1]
|
||||
except IndexError:
|
||||
log.error(
|
||||
"templates:get_version_from_workfile:"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue