Hi all,
See the following python codes:
import os
from subprocess import check_output
# POSIX: name shall not contain '=', value doesn't contain '\0'
output = check_output("source /home/werner/env-intel-toolchains.sh;
env -0", shell=True, executable="/bin/bash")
In the above codes, I use the file /home/werner/env-intel-toolchains.sh
for subprocess.check_output to use for its operation.
If I want to use python heredoc to substitute this external file for the
above codes. Is this possible?
Regards
--
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
--
https://mail.python.org/mailman/listinfo/python-list