archive
/
md-pdf
Archived
1
Fork 0

Fixed download_csl to work on windows

This commit is contained in:
James Seden Smith 2017-04-27 12:06:53 +01:00
parent 56c55e005b
commit b273b893c0
No known key found for this signature in database
GPG Key ID: F30AED42FDCCAD35
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,6 @@ def download_csl():
bar = ProgressBar()
remove_dir(CSL_DIR)
remove_dir(CSL_DOWNLOAD_LINK)
def download_handle(count, block_size, total_size):
bar.update(int(count * block_size * 100 / total_size))
@ -47,6 +46,7 @@ def download_csl():
bar.finish()
os.close(_)
logger.info("Cleaning Up...")
shutil.copytree(CSL_TEMP_DIR, CSL_DIR)
os.remove(download_location)