Skip to content

Commit cb7abd5

Browse files
fix: Use urllib instead of curl (microsoft#302)
1 parent f1c8344 commit cb7abd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build_package.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import stat
1919
import subprocess
2020
import sys
21+
import urllib.request
2122
import zipfile
2223

2324
from playwright.path_utils import get_file_dirname
@@ -40,7 +41,7 @@ def driver_version(platform: str) -> str:
4041
if not os.path.exists("driver/" + zip_file):
4142
url = "https://playwright.azureedge.net/builds/cli/next/" + zip_file
4243
print("Fetching ", url)
43-
subprocess.check_call(["curl", url, "-o", "driver/" + zip_file])
44+
urllib.request.urlretrieve(url, "driver/" + zip_file)
4445

4546
_dirname = get_file_dirname()
4647
_build_dir = _dirname / "build"

0 commit comments

Comments
 (0)