You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
323 B
10 lines
323 B
from pathlib import Path |
|
import os |
|
|
|
BASE_DIR = Path(__file__).resolve().parent.parent |
|
DATA_DIR = Path(os.getenv("DATA_DIR", BASE_DIR / "data")) |
|
STORAGE_DIR = Path(os.getenv("STORAGE_DIR", BASE_DIR / "storage")) |
|
DATABASE_URL = os.getenv( |
|
"DATABASE_URL", |
|
f"sqlite:///{(DATA_DIR / 'bottle_archive.db').as_posix()}", |
|
)
|
|
|