We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ae38af commit b0bef45Copy full SHA for b0bef45
1 file changed
c_src/pythonx.cpp
@@ -450,8 +450,13 @@ for key in to_remove:
450
for key, value in envs.items():
451
if os.environ.get(key, None) != value:
452
print((key, os.environ.get(key, None), value))
453
- os.environ[key] = value
454
- print((key, "env var set"))
+ try:
+ os.environ[key] = value
455
+ print((key, "env var set"))
456
+ except Exception as e:
457
+ print((key, "env var set failed", e))
458
+ print(key)
459
+ print(value)
460
461
462
pythonx_handle_io_write = ctypes.CFUNCTYPE(
0 commit comments