Load the default DB from the .env file

This commit is contained in:
Luís Murta 2023-01-10 21:35:43 +00:00
parent c37e7eb37c
commit 0d287624c4
Signed by: satprog
GPG Key ID: 169EF1BBD7049F94

View File

@ -1,6 +1,8 @@
from dotenv import load_dotenv
import argparse
import datetime as dt
import decimal
import os
import re
from pfbudget.common.types import Operation
@ -10,8 +12,9 @@ import pfbudget.reporting.graph
import pfbudget.reporting.report
import pfbudget.utils
load_dotenv()
DEFAULT_DB = "data.db"
DEFAULT_DB = os.environ.get("DEFAULT_DB")
class PfBudgetInitialized(Exception):