2018-12-17 00:30:31 +01:00
|
|
|
#! /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")
|
2018-12-18 10:53:13 +01:00
|
|
|
if os.path.exists("build"):
|
|
|
|
shutil.rmtree("build")
|
|
|
|
os.chdir("..\\scripts")
|
2018-12-17 00:30:31 +01:00
|
|
|
|
|
|
|
create_archive()
|