From: Cheng Zhao Date: Thu, 7 Aug 2014 14:27:38 +0000 (+0800) Subject: Merge branch 'appveyor_setup' of https://github.com/deepak1556/atom-shell into deepak... X-Git-Tag: v0.15.5~10^2~12 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=8eb650ce03e692251ff04ef9c9a9e2b7f95febba;p=electron.git Merge branch 'appveyor_setup' of https://github.com/deepak1556/atom-shell into deepak1556-appveyor_setup Conflicts: script/lib/util.py --- 8eb650ce03e692251ff04ef9c9a9e2b7f95febba diff --cc script/lib/util.py index c78ca213,f5238660..17595742 --- a/script/lib/util.py +++ b/script/lib/util.py @@@ -30,8 -30,7 +30,8 @@@ def scoped_cwd(path) def download(text, url, path): + safe_mkdir(os.path.dirname(path)) - with open(path, 'w') as local_file: + with open(path, 'wb') as local_file: web_file = urllib2.urlopen(url) file_size = int(web_file.info().getheaders("Content-Length")[0]) downloaded_size = 0