Advertisement
bAngelov

Zip Softuni Python OOP Project

Nov 1st, 2023 (edited)
1,020
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. import os
  2.  
  3. def zip_current_project():
  4.     '''Place this file in the folder containing your project directory and run it.\n
  5.            A project zip will be created, excluding __pycache__ directory, which occupies space.\n
  6.            Suitable for Windows 10/11 and Unix based systems, supporting tar'''
  7.     os.system(f"tar --exclude __pycache__ -acvf project.zip project")
  8.  
  9. if __name__ == "__main__":
  10.     zip_current_project()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement