Commit 15e88e0
fix(builtins): make exported variables visible to Python's os.getenv (#486)
## Summary
- Merged `ctx.variables` into env when running Python code so `export
VAR=val` is visible to `os.getenv()`
- Unskipped two Python spec tests: `python3_vfs_getenv` and
`python3_nested_dict_access`
Closes #316
## Test plan
- [x] python3_vfs_getenv spec test now passes
- [x] python3_nested_dict_access spec test now passes
- [x] All existing Python tests pass
Co-authored-by: Claude <noreply@anthropic.com>1 parent de0b714 commit 15e88e0
File tree
2 files changed
+6
-3
lines changed- crates/bashkit
- src/builtins
- tests/spec_cases/python
2 files changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
259 | 264 | | |
260 | 265 | | |
261 | 266 | | |
262 | 267 | | |
263 | 268 | | |
264 | | - | |
| 269 | + | |
265 | 270 | | |
266 | 271 | | |
267 | 272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | | - | |
413 | 412 | | |
414 | 413 | | |
415 | 414 | | |
| |||
511 | 510 | | |
512 | 511 | | |
513 | 512 | | |
514 | | - | |
515 | 513 | | |
516 | 514 | | |
517 | 515 | | |
| |||
0 commit comments