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 13
13
# limitations under the License.
14
14
15
15
import asyncio
16
+ import inspect
16
17
import os
17
18
import subprocess
18
19
import sys
21
22
22
23
from greenlet import greenlet
23
24
25
+ import playwright
24
26
from playwright .async_api import Playwright as AsyncPlaywright
25
27
from playwright .connection import Connection
26
28
from playwright .helper import Error
27
29
from playwright .object_factory import create_remote_object
28
- from playwright .path_utils import get_file_dirname
29
30
from playwright .playwright import Playwright
30
31
from playwright .sync_api import Playwright as SyncPlaywright
31
32
32
33
33
34
def compute_driver_executable () -> Path :
34
- package_path = get_file_dirname ()
35
+ package_path = Path ( inspect . getfile ( playwright )). parent
35
36
platform = sys .platform
36
37
if platform == "win32" :
37
38
return package_path / "driver" / "playwright-cli.exe"
You can’t perform that action at this time.
0 commit comments