add unused.py, refactor common code a bit
This commit is contained in:
9
lib/config.py
Normal file
9
lib/config.py
Normal 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)
|
Reference in New Issue
Block a user