Merge pull request #3372 from pypeclub/bugfix/harmony_unzip_url_lenght_issue

Harmony: added unc path to zifile command in Harmony
This commit is contained in:
Petr Kalis 2022-06-21 12:40:34 +02:00 committed by GitHub
commit 5d6445eeb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -322,7 +322,9 @@ class HarmonySubmitDeadline(
)
unzip_dir = (published_scene.parent / published_scene.stem)
with _ZipFile(published_scene, "r") as zip_ref:
zip_ref.extractall(unzip_dir.as_posix())
# UNC path (//?/) added to minimalize risk with extracting
# to large file paths
zip_ref.extractall("//?/" + str(unzip_dir.as_posix()))
# find any xstage files in directory, prefer the one with the same name
# as directory (plus extension)