music-dl/scripts/prepare_zipversion.py

15 lines
355 B
Python
Raw Normal View History

#! /usr/bin/env python# -*- coding: iso-8859-1 -*-
import shutil
import os
def create_archive():
os.chdir("..\\src")
print("Creating zip archive...")
2018-12-28 21:05:10 -06:00
shutil.make_archive("music_dl", "zip", "dist/main")
if os.path.exists("dist"):
shutil.rmtree("dist")
if os.path.exists("build"):
shutil.rmtree("build")
os.chdir("..\\scripts")
create_archive()