mirror of
https://github.com/alphapapa/solarized-everything-css
synced 2024-11-15 00:12:44 +00:00
Use shutil to support tmp on a separate filesystem
This commit is contained in:
parent
d3c3beff94
commit
433f1fa863
3
make.py
3
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)
|
||||
|
||||
|
1
sites/mediawiki.org.url
Normal file
1
sites/mediawiki.org.url
Normal file
@ -0,0 +1 @@
|
||||
https://en.wikipedia.org/wiki/Tar_(computing)
|
Loading…
Reference in New Issue
Block a user