socializer/scripts/prepare_zipversion.py

12 lines
272 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..."
shutil.make_archive("socializer", "zip", "dist")
if os.path.exists("dist"):
shutil.rmtree("dist")
create_archive()