commit 49945a3bce888003c0abbe356908c9d5f50e30bc
parent 9dbae6d0aeba9c7191199c06ce6ac6990a39dbe0
Author: ThomasV <thomasv@gitorious>
Date: Sat, 23 Nov 2013 15:47:00 +0100
update web script
Diffstat:
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/contrib/make_download b/contrib/make_download
@@ -3,9 +3,10 @@ import sys
import hashlib
import os
-from versions import version, version_win, version_mac
+from versions import version, version_win, version_mac, template_path, dl_path
-string = sys.stdin.read()
+with open(template_path) as f:
+ string = f.read()
_tgz = "Electrum-%s.tar.gz" % version
_zip = "Electrum-%s.zip" % version
@@ -37,4 +38,6 @@ string = string.replace("##md5_win##", md5_win)
string = string.replace("##md5_win_setup##", md5_win_setup)
string = string.replace("##md5_win_portable##", md5_win_portable)
-print string
+with open(dl_path,'w') as f:
+ f.write(string)
+