Skip to content

Commit 008adc4

Browse files
committed
Inherit perf record env vars
1 parent 5d0bcce commit 008adc4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pyperf/_utils.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,10 @@ def create_environ(inherit_environ, locale, copy_all):
270270
env = {}
271271
copy_env = ["PATH", "HOME", "TEMP", "COMSPEC", "SystemRoot", "SystemDrive",
272272
# Python specific variables
273-
"PYTHONPATH", "PYTHON_CPU_COUNT", "PYTHON_GIL"]
273+
"PYTHONPATH", "PYTHON_CPU_COUNT", "PYTHON_GIL",
274+
# Pyperf specific variables
275+
"PYPERF_PERF_RECORD_DATA_DIR", "PYPERF_PERF_RECORD_EXTRA_OPTS",
276+
]
274277
if locale:
275278
copy_env.extend(('LANG', 'LC_ADDRESS', 'LC_ALL', 'LC_COLLATE',
276279
'LC_CTYPE', 'LC_IDENTIFICATION', 'LC_MEASUREMENT',

0 commit comments

Comments
 (0)