diff --git a/config.py b/config.py index d974266..98a3509 100644 --- a/config.py +++ b/config.py @@ -1 +1,5 @@ -DBPATH="/home/db/easyindex.sqlite" +import os +DBPATH=os.getenv("EASYINDEX_PATH") +if DBPATH == None or DBPATH == "": + print("MIssing env var") + exit(1)