diff --git a/make.py b/make.py index 622b593..c7df070 100755 --- a/make.py +++ b/make.py @@ -3,6 +3,7 @@ # * Imports import os +import shutil import subprocess import sys import multiprocessing @@ -130,7 +131,7 @@ def save_screenshot(css): # Compress with pngcrush _, tempfile_path = mkstemp(suffix=".png") subprocess.check_output(["pngcrush", screenshot_path, tempfile_path], stderr=subprocess.DEVNULL) - os.replace(tempfile_path, screenshot_path) + shutil.move(tempfile_path, screenshot_path) print(screenshot_path) diff --git a/sites/mediawiki.org.url b/sites/mediawiki.org.url new file mode 100644 index 0000000..08673aa --- /dev/null +++ b/sites/mediawiki.org.url @@ -0,0 +1 @@ +https://en.wikipedia.org/wiki/Tar_(computing)