get database path from env
This commit is contained in:
orang tua
364d56f5d4
melakukan
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)
|
||||
|
Memuat…
Reference in New Issue
Block a user