mirror of
https://github.com/blw1138/Zordon.git
synced 2025-12-17 08:48:13 +00:00
Minor addition to pack_project.py script
This commit is contained in:
@@ -44,7 +44,10 @@ bpy.ops.wm.save_as_mainfile(filepath=os.path.join(tmp_dir, os.path.basename(proj
|
|||||||
# Save Zip
|
# Save Zip
|
||||||
zip_path = os.path.join(os.path.dirname(project_path), f"{os.path.basename(project_path).split('.')[0]}.zip")
|
zip_path = os.path.join(os.path.dirname(project_path), f"{os.path.basename(project_path).split('.')[0]}.zip")
|
||||||
zip_files([os.path.join(tmp_dir, os.path.basename(project_path)), asset_dir], zip_path)
|
zip_files([os.path.join(tmp_dir, os.path.basename(project_path)), asset_dir], zip_path)
|
||||||
|
if os.path.exists(zip_path):
|
||||||
print(f'Saved to: {zip_path}')
|
print(f'Saved to: {zip_path}')
|
||||||
|
else:
|
||||||
|
print("Error saving zip file!")
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
shutil.rmtree(tmp_dir, ignore_errors=True)
|
shutil.rmtree(tmp_dir, ignore_errors=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user