dmddl 0.2.8__tar.gz → 0.2.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dmddl-0.2.8 → dmddl-0.2.10}/PKG-INFO +1 -1
- {dmddl-0.2.8 → dmddl-0.2.10}/pyproject.toml +1 -1
- {dmddl-0.2.8 → dmddl-0.2.10}/src/dmddl/config/settings.py +9 -4
- {dmddl-0.2.8 → dmddl-0.2.10}/LICENSE +0 -0
- {dmddl-0.2.8 → dmddl-0.2.10}/README.md +0 -0
- {dmddl-0.2.8 → dmddl-0.2.10}/src/dmddl/__init__.py +0 -0
- {dmddl-0.2.8 → dmddl-0.2.10}/src/dmddl/cli.py +0 -0
- {dmddl-0.2.8 → dmddl-0.2.10}/src/dmddl/config/__init__.py +0 -0
- {dmddl-0.2.8 → dmddl-0.2.10}/src/dmddl/models/__init__.py +0 -0
- {dmddl-0.2.8 → dmddl-0.2.10}/src/dmddl/models/llm.py +0 -0
- {dmddl-0.2.8 → dmddl-0.2.10}/src/dmddl/models/prompt.py +0 -0
@@ -1,12 +1,17 @@
|
|
1
1
|
import dotenv
|
2
|
-
|
2
|
+
import os
|
3
|
+
from pathlib import Path
|
3
4
|
|
4
5
|
def get_dotenv_path():
|
6
|
+
# Проверяем стандартные места поиска .env
|
5
7
|
env_path = dotenv.find_dotenv()
|
8
|
+
|
9
|
+
|
6
10
|
if not env_path:
|
7
|
-
|
8
|
-
|
9
|
-
|
11
|
+
env_dir = "config"
|
12
|
+
env_path = os.path.join(env_dir, ".env")
|
13
|
+
os.makedirs(env_dir, exist_ok=True)
|
14
|
+
Path(env_path).touch(exist_ok=True)
|
10
15
|
return env_path
|
11
16
|
|
12
17
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|