Minor addition to pack_project.py script

This commit is contained in:
Brett Williams
2023-06-05 16:45:13 -05:00
parent 30bd679de8
commit f7bda49934

View File

@@ -44,7 +44,10 @@ bpy.ops.wm.save_as_mainfile(filepath=os.path.join(tmp_dir, os.path.basename(proj
# Save 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)
if os.path.exists(zip_path):
print(f'Saved to: {zip_path}')
else:
print("Error saving zip file!")
# Cleanup
shutil.rmtree(tmp_dir, ignore_errors=True)