python 执行source 提示not found
解决办法:
source_cmd = 'source /etc/profile'
subprocess.run(source_cmd, shell=True, executable="/bin/bash", capture_output=True)
source_cmd = 'source /etc/profile'
subprocess.run(source_cmd, shell=True, executable="/bin/bash", capture_output=True)