Skip to content

Commit 8f03712

Browse files
authored
Inherit "ProgramFiles" in environment (#172)
(and "ProgramFiles(x86)") Fixes #171.
1 parent b693a4d commit 8f03712

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyperformance/venv.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ def get_venv_program(program):
8888
def _get_envvars(inherit=None):
8989
# Restrict the env we use.
9090
env = {}
91-
copy_env = ["PATH", "HOME", "TEMP", "COMSPEC", "SystemRoot"]
91+
copy_env = ["PATH", "HOME", "TEMP", "COMSPEC", "SystemRoot",
92+
"ProgramFiles", "ProgramFiles(x86)"]
9293
if inherit:
9394
copy_env.extend(inherit)
9495
for name in copy_env:

0 commit comments

Comments
 (0)