mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
use HOST_WORKFILE_EXTENSIONS to get workfile extensions
This commit is contained in:
parent
e43f7bc007
commit
2f9f1ad00c
1 changed files with 5 additions and 1 deletions
|
|
@ -233,6 +233,7 @@ class ExtractHarmonyZip(openpype.api.Extractor):
|
|||
"version": 1,
|
||||
"ext": "zip",
|
||||
}
|
||||
host_name = "harmony"
|
||||
|
||||
# Get a valid work filename first with version 1
|
||||
file_template = anatomy.templates["work"]["file"]
|
||||
|
|
@ -241,7 +242,10 @@ class ExtractHarmonyZip(openpype.api.Extractor):
|
|||
|
||||
# Get the final work filename with the proper version
|
||||
data["version"] = api.last_workfile_with_version(
|
||||
os.path.dirname(work_path), file_template, data, [".zip"]
|
||||
os.path.dirname(work_path),
|
||||
file_template,
|
||||
data,
|
||||
api.HOST_WORKFILE_EXTENSIONS[host_name]
|
||||
)[1]
|
||||
|
||||
base_name = os.path.splitext(os.path.basename(work_path))[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue