get database path from env

This commit is contained in:
Albert S. 2018-01-05 13:51:40 +01:00
джерело 364d56f5d4
коміт ff77d11856

@ -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)