add unused.py, refactor common code a bit

This commit is contained in:
Carl Pearson
2021-12-01 08:28:45 -08:00
parent 84bdee85ce
commit 4a09bc2d33
7 changed files with 83 additions and 48 deletions

9
lib/config.py Normal file
View File

@@ -0,0 +1,9 @@
import os
import sys
from pathlib import Path
try:
DIR = Path(os.environ["SS_DIR"])
except KeyError as e:
print("ERROR: $SS_DIR not set")
sys.exit(1)