Commit f1085bb
committed
fix: load .env from current working directory, not package location
load_dotenv() without arguments searches from the calling module's
directory. When zad is installed via uv tool install, this means it
looks in the package install path instead of the user's project
directory. Fixed by passing dotenv_path='.env' which resolves from CWD.
This was the root cause of -p being "required" even after config init
had saved ZAD_PROJECT_ID to .env.1 parent 7bc7c81 commit f1085bb
2 files changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
0 commit comments