19 lines
377 B
Python
19 lines
377 B
Python
|
#!/usr/bin/env python3
|
||
|
# Simply move the map.png file to the blog output dir
|
||
|
# since it won't do so automatically for pillow creations.
|
||
|
|
||
|
import shutil
|
||
|
import os
|
||
|
import sys
|
||
|
|
||
|
if not os.getenv("QUARTO_PROJECT_RENDER_ALL"):
|
||
|
sys.exit(0)
|
||
|
|
||
|
q_output_dir = os.getenv("QUARTO_PROJECT_OUTPUT_DIR")
|
||
|
if not q_output_dir:
|
||
|
sys.exit(1)
|
||
|
|
||
|
src = "map.png"
|
||
|
|
||
|
shutil.copy(src, q_output_dir)
|