Issue statement:
-- On Mac OS, when JSL launches Python interpreter, it removes /use/local/bin and other paths from os.environ['PATH']
How to reproduce this issue:
-- For the following Python codes
import os
print(os.environ)
-- If the codes are executed in Mac OS Terminal, the results would be the followings:
(Note: only 'PATH' item is shown below. Other irrelevant items are not shown)
environ({ 'PATH':'/usr/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/opt/X11/bin'})
-- If the codes are executed in JSL (see JSL codes below)
Python Init();
python_codes =
"
import os
print(os.environ)
";
Python Init();
Python Submit (python_codes);
Python Term();
The results will be
environ({ 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'})
Question:
- Why does JMP/JSL remove these paths?
- Is there a way to make JMP/JSL honor the path settings from the shell, other than manually modifying the 'PATH' settings in JSL Python codes?