read dot_env from path
This commit is contained in:
parent
88439cf0fa
commit
5c14389e9d
2 changed files with 4 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ logging.basicConfig(
|
|||
|
||||
logger = logging.getLogger()
|
||||
|
||||
load_dotenv()
|
||||
load_dotenv(dotenv_path=PATHS.dot_env_file_path, verbose=True)
|
||||
|
||||
|
||||
@click.group()
|
||||
|
|
|
|||
|
|
@ -5,3 +5,6 @@ from dataclasses import dataclass
|
|||
@dataclass
|
||||
class PATHS:
|
||||
logging_file: pathlib.Path = pathlib.Path("xexe.log")
|
||||
# Expand user is important. It will replace the user and give you the full
|
||||
# path. Stuff breaks without it.
|
||||
dot_env_file_path: pathlib.Path = pathlib.Path("~/.xexe/.env").expanduser()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue