dmddl 0.2.9__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dmddl
3
- Version: 0.2.9
3
+ Version: 0.2.10
4
4
  Summary: cli tool for creating insert script from ddl script
5
5
  License: MIT
6
6
  Author: HoJLter
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dmddl"
3
- version = "0.2.9"
3
+ version = "0.2.10"
4
4
  description = "cli tool for creating insert script from ddl script"
5
5
  authors = [
6
6
  {name = "HoJLter",email = "hojlter.work@gmail.com"}
@@ -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
- with open("dmddl/config/.env", "w"):
8
- pass
9
- env_path = dotenv.find_dotenv()
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