Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Commit

Permalink
Fix config.py for Docker 🚧
Browse files Browse the repository at this point in the history
  • Loading branch information
cofob committed Feb 18, 2022
1 parent 38a1655 commit b2bf708
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autodonate/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ def __init__(self) -> None:
# if there "DONATE_CONFIG" use it
if environ.get("DONATE_CONFIG") and Path(environ["DONATE_CONFIG"]).is_file(): # noqa: E501
self.CONFIG_PATH: Path = Path(environ["DONATE_CONFIG"])
elif Path("/config/config.toml").is_file():
self.CONFIG_PATH: Path = Path("/config/config.toml") # type: ignore[no-redef] # no
else:
self.CONFIG_PATH: Path = BASE_DIR / "config.toml" # type: ignore[no-redef] # noqa: E501

Expand Down

0 comments on commit b2bf708

Please sign in to comment.