/exe "bla bla"这可能很简单,但我通常不使用修改过的环境变量运行程序,那么如何设置它呢?loading shared libraries: libfoo.so: cannot open shared object file: No such file or directorySEARCH_DIR("=/
我使用下面的python函数来运行linux命令。我正在运行一个脚本,它创建了一些环境变量,然后我使用下面的函数运行linux命令,再次将所有这些变量移植到脚本中;然而,使用第二个命令似乎没有记录第一个命令的环境变量。如果是这样的话,我如何修改我的代码或使用哪个函数来让所有东西都在同一个shell中运行?def execute(cmd):
'''Module to execute linux command''&