Skip to content

Commit

Permalink
fix: add back python.getenv that was accidentally deleted in 3e2aad2
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmader committed Oct 1, 2024
1 parent 3e2aad2 commit 7ebe149
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/pythonmonkey/require.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
# See https://docs.python.org/3.13/whatsnew/3.13.html#defined-mutation-semantics-for-locals
globalThis.python.eval = lambda x: eval(x, None, sys._getframe(1).f_locals)
globalThis.python.exec = lambda x: exec(x, None, sys._getframe(1).f_locals)
globalThis.python.getenv = os.getenv
globalThis.python.paths = sys.path

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

0 comments on commit 7ebe149

Please sign in to comment.