Skip to content

Commit aaaf0f8

Browse files
oss_fuzz_checkout: relax constraints on venv check (#916)
Sometimes it's useful to use a virtual environment that is not used in the given path. If the VIRTUAL_ENV environment is set, then we can assume we are in a correct virtual environment.
1 parent baa27ac commit aaaf0f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

experiment/oss_fuzz_checkout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def postprocess_oss_fuzz() -> None:
119119

120120
# If already in a virtualenv environment assume all is set up
121121
venv_path = os.path.split(os.environ.get('VIRTUAL_ENV', ''))
122-
if venv_path and venv_path[0].endswith(os.path.split(OSS_FUZZ_DIR)[-1]):
122+
if venv_path:
123123
return
124124

125125
result = sp.run(['python3', '-m', 'venv', VENV_DIR],

0 commit comments

Comments
 (0)