update scripts to be nix compatible
This commit is contained in:
parent
3d2d57ddff
commit
070455ac33
4 changed files with 71 additions and 79 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue