Skip to content

Commit 5bb7544

Browse files
committed
Try falling back to pip if pip3 doesn't exist
1 parent 7eed90b commit 5bb7544

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/wpt/virtualenv.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ def bin_path(self):
6060
def pip_path(self):
6161
path = which("pip3", path=self.bin_path)
6262
if path is None:
63-
raise ValueError("pip3 not found")
63+
path = which("pip", path=self.bin_path)
64+
if path is None:
65+
raise ValueError("pip3 or pip not found")
6466
return path
6567

6668
@property

0 commit comments

Comments
 (0)