Skip to content

Commit 7ebe149

Browse files
committed
fix: add back python.getenv that was accidentally deleted in 3e2aad2
1 parent 3e2aad2 commit 7ebe149

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/pythonmonkey/require.py

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
# See https://docs.python.org/3.13/whatsnew/3.13.html#defined-mutation-semantics-for-locals
8787
globalThis.python.eval = lambda x: eval(x, None, sys._getframe(1).f_locals)
8888
globalThis.python.exec = lambda x: exec(x, None, sys._getframe(1).f_locals)
89+
globalThis.python.getenv = os.getenv
8990
globalThis.python.paths = sys.path
9091

9192
globalThis.python.exit = pm.eval("""'use strict';

0 commit comments

Comments
 (0)