update scripts to be nix compatible

This commit is contained in:
Barrett Ruth 2026-02-10 20:53:05 -05:00
parent 3d2d57ddff
commit 070455ac33
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
4 changed files with 71 additions and 79 deletions

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# Requires python3 with Pillow (provided by home-manager packages)
import os
import random
@ -8,7 +9,7 @@ import sys
try:
from PIL import Image, ImageDraw
except ImportError:
print("wp: missing dependency: pillow (pip install pillow)", file=sys.stderr)
print("wp: missing dependency: pillow (should be in home-manager python3 package)", file=sys.stderr)
sys.exit(1)
HOME = os.environ["HOME"]