We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
python.getenv
3e2aad2
1 parent 3e2aad2 commit 7ebe149Copy full SHA for 7ebe149
python/pythonmonkey/require.py
@@ -86,6 +86,7 @@
86
# See https://docs.python.org/3.13/whatsnew/3.13.html#defined-mutation-semantics-for-locals
87
globalThis.python.eval = lambda x: eval(x, None, sys._getframe(1).f_locals)
88
globalThis.python.exec = lambda x: exec(x, None, sys._getframe(1).f_locals)
89
+globalThis.python.getenv = os.getenv
90
globalThis.python.paths = sys.path
91
92
globalThis.python.exit = pm.eval("""'use strict';
0 commit comments