Skip to content

Commit

Permalink
更新update.py
Browse files Browse the repository at this point in the history
  • Loading branch information
时雨 committed May 7, 2015
1 parent 9a2ff98 commit 2b71686
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ def checksum_md5(filename):
if checksum_md5(file) != checksum_md5(remote_filename):
update = True
if update:
(dir, _) = os.path.split(remote_filename)
if not os.path.isdir(dir):
os.makedirs(dir)
shutil.copyfile(file, remote_filename)

0 comments on commit 2b71686

Please sign in to comment.