[issue32760] [Python Shell command issue]

2018-02-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: It's normal, when you execute a command, there is a fork/exec, fork for the new process, and the exec will replace the memory of the previous process by the new process. in os.system, you use ('export MYENVPATH=/usr/bin/gcc') but this variable only exists f

[issue32760] [Python Shell command issue]

2018-02-05 Thread JamesDinh
JamesDinh added the comment: Hi, >From this stackoverflow thread: https://stackoverflow.com/questions/716011/why-cant-environmental-variables-set-in-python-persist I find out there is an abnormal environment variable setting affects by using shell command. Do you have some explanation for the

[issue32760] [Python Shell command issue]

2018-02-03 Thread JamesDinh
New submission from JamesDinh : Hi Python dev. team, I would like to report below error: 1) Tittle: Running Linux shell command from python file always leads to reset config error. 2) Environment: + Linux distro: Both Ubuntu 16.04 64b and Fedora 25 happen this issue + Python: Python 2.7.12 (de