Merge pull request #3 from sedders123/windows_support

Basic Windows support
This commit is contained in:
Jake Howard 2017-05-03 11:46:45 +01:00 committed by GitHub
commit bbc669ca92

View file

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