Skip to content

Commit e95040a

Browse files
committed
fix: remove no longer used load_dotenv
1 parent 7fe0069 commit e95040a

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

scripts/util.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,11 @@
1717
import cruft
1818
import typer
1919
from cookiecutter.utils import work_in
20-
from dotenv import load_dotenv
2120
from typer.models import OptionInfo
2221

2322

2423
REPO_FOLDER: Path = Path(__file__).resolve().parent.parent
2524

26-
27-
def _load_env() -> None:
28-
"""Load environment variables from .env and .env.local (if present).
29-
30-
.env.local takes precedence over .env for any overlapping variables.
31-
"""
32-
env_file: Path = REPO_FOLDER / ".env"
33-
env_local_file: Path = REPO_FOLDER / ".env.local"
34-
35-
if env_file.exists():
36-
load_dotenv(env_file)
37-
38-
if env_local_file.exists():
39-
load_dotenv(env_local_file, override=True)
40-
41-
42-
# Load environment variables at module import time
43-
_load_env()
44-
45-
4625
FolderOption: partial[OptionInfo] = partial(
4726
typer.Option, dir_okay=True, file_okay=False, resolve_path=True, path_type=Path
4827
)

0 commit comments

Comments
 (0)