generated from dopt-python/py311
handling with .env file
This commit is contained in:
@@ -1,15 +1 @@
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
PROJECT_ROOT = Path(__file__).parents[2]
|
||||
DB_PATH = PROJECT_ROOT / "data/db"
|
||||
|
||||
DB_KONTAKTLISTE = DB_PATH / "wce_kontaktliste.db"
|
||||
assert DB_KONTAKTLISTE.exists()
|
||||
DB_CRM = DB_PATH / "wce_crm.db"
|
||||
assert DB_CRM.exists()
|
||||
|
||||
|
||||
def setup():
|
||||
os.environ["DOPT_DB_KONTAKTLISTE"] = str(DB_KONTAKTLISTE)
|
||||
os.environ["DOPT_DB_CRM"] = str(DB_CRM)
|
||||
|
||||
Reference in New Issue
Block a user