File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515import asyncio
16+ import inspect
1617import os
1718import subprocess
1819import sys
2122
2223from greenlet import greenlet
2324
25+ import playwright
2426from playwright .async_api import Playwright as AsyncPlaywright
2527from playwright .connection import Connection
2628from playwright .helper import Error
2729from playwright .object_factory import create_remote_object
28- from playwright .path_utils import get_file_dirname
2930from playwright .playwright import Playwright
3031from playwright .sync_api import Playwright as SyncPlaywright
3132
3233
3334def compute_driver_executable () -> Path :
34- package_path = get_file_dirname ()
35+ package_path = Path ( inspect . getfile ( playwright )). parent
3536 platform = sys .platform
3637 if platform == "win32" :
3738 return package_path / "driver" / "playwright-cli.exe"
You can’t perform that action at this time.
0 commit comments