From 325db8ab3c977d5dd8275abcdd4644ce108b4465 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sun, 16 Dec 2018 17:30:31 -0600 Subject: [PATCH] Added script to prepare a zipped version ofsocializer --- scripts/prepare_zipversion.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/prepare_zipversion.py diff --git a/scripts/prepare_zipversion.py b/scripts/prepare_zipversion.py new file mode 100644 index 0000000..d7bc109 --- /dev/null +++ b/scripts/prepare_zipversion.py @@ -0,0 +1,12 @@ +#! /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() \ No newline at end of file