OSX version still needs a bit of work, but completely works now (#43)

This commit is contained in:
Micah Lee 2014-06-19 22:05:56 -07:00
parent 31ec0c11d5
commit a464b6fe1d
5 changed files with 33 additions and 13 deletions

12
setup/py2app.patch Normal file
View file

@ -0,0 +1,12 @@
--- original-util.py 2014-06-17 12:50:15.000000000 -0700
+++ util.py 2014-06-17 12:51:33.000000000 -0700
@@ -148,6 +148,9 @@
log.info("copying file %s -> %s", source, destination)
with zipio.open(source, 'rb') as fp_in:
if not dry_run:
+ if os.path.exists(destination):
+ os.unlink(destination)
+
with open(destination, 'wb') as fp_out:
data = fp_in.read()
fp_out.write(data)