Skip to content

Commit 06a0369

Browse files
authored
fix: update driver for local development (#125)
1 parent 33afb6c commit 06a0369

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build_driver.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535
subprocess.check_call("npm i", cwd=driver_path, shell=True)
3636
subprocess.check_call("npm run bake", cwd=driver_path, shell=True)
3737

38+
# for local development
39+
drivers = (driver_path / "out").glob("**/*")
40+
for driver in drivers:
41+
shutil.copy(driver, drivers_path)
42+
3843
node_modules_playwright = driver_path / "node_modules" / "playwright"
3944

4045
shutil.copyfile(

build_package.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,4 @@
4949
to_location = f"playwright/drivers/{driver}"
5050
with zipfile.ZipFile(wheel_location, "a") as zipf:
5151
zipf.write(from_location, to_location)
52-
# for local development
53-
shutil.copy(from_location, to_location)
5452
os.remove(base_wheel_location)

0 commit comments

Comments
 (0)