Fixed zipfile generator

This commit is contained in:
Manuel Cortez 2020-07-07 17:56:44 -05:00
parent ea04cf2eb1
commit ff8c8ac22b

View File

@ -6,10 +6,7 @@ import sys
def create_archive(): def create_archive():
os.chdir("..\\src") os.chdir("..\\src")
print("Creating zip archive...") print("Creating zip archive...")
if sys.version[0] == "3": folder = "dist"
folder = "dist/main"
else:
folder = "dist"
shutil.make_archive("music_dl", "zip", folder) shutil.make_archive("music_dl", "zip", folder)
# if os.path.exists("dist"): # if os.path.exists("dist"):
# shutil.rmtree("dist") # shutil.rmtree("dist")