Andrey Morozov <[email protected]> added the comment: it fix my problem:
e = os.environ.copy() e['PATH_TO_MY_APPS'] = "path/to/my/apps" p = subprocess.Popen(sys.executable + " test1.py 123", env=e, shell=True, stdout=subprocess.PIPE) answer: need have copy of environments ---------- status: open -> closed _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue13524> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
