tupdate web script - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 49945a3bce888003c0abbe356908c9d5f50e30bc DIR parent 9dbae6d0aeba9c7191199c06ce6ac6990a39dbe0 HTML Author: ThomasV <thomasv@gitorious> Date: Sat, 23 Nov 2013 15:47:00 +0100 update web script Diffstat: M contrib/make_download | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) --- DIR diff --git a/contrib/make_download b/contrib/make_download t@@ -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 t@@ -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) +