socializer/scripts/prepare_zipversion.py

17 lines
382 B
Python
Raw Permalink Normal View History

#! /usr/bin/env python# -*- coding: iso-8859-1 -*-
import shutil
import os
2019-01-01 20:56:12 -06:00
import sys
def create_archive():
os.chdir("..\\src")
2019-01-01 20:56:12 -06:00
print("Creating zip archive...")
2019-12-03 10:34:34 -06:00
folder = "dist"
2019-01-01 20:56:12 -06:00
shutil.make_archive("socializer", "zip", folder)
# if os.path.exists("dist"):
# shutil.rmtree("dist")
if os.path.exists("build"):
shutil.rmtree("build")
os.chdir("..\\scripts")
create_archive()