remove PYTHONPATH

This commit is contained in:
Brad Warren 2019-08-27 11:19:13 -07:00
parent b1a8f82181
commit 5c03ff17ca

View file

@ -37,6 +37,7 @@ def _prepare_args_env(certbot_args, directory_url, http_01_port, tls_alpn_01_por
config_dir, workspace, force_renew):
new_environ = os.environ.copy()
new_environ['TMPDIR'] = workspace
new_environ.pop('PYTHONPATH')
additional_args = []
@ -45,7 +46,7 @@ def _prepare_args_env(certbot_args, directory_url, http_01_port, tls_alpn_01_por
try:
version_output = subprocess.check_output(['certbot', '--version'],
universal_newlines=True, stderr=subprocess.STDOUT,
cwd=workspace)
cwd=workspace, env=new_environ)
except BaseException as e:
print(e.output)
raise