File tree Expand file tree Collapse file tree
PlaywrightSafeThread/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ def __init__(
4040 check_open_dir = True ,
4141 close_already_profile = True ,
4242 loop = None ,
43+ playwright_path_env = True ,
4344 ** kwargs
4445 ) -> None :
4546 """
@@ -243,9 +244,10 @@ def __init__(
243244 if key in __context_option :
244245 self ._context_option .update ({key : kwargs [key ]})
245246
246- os .environ .setdefault ("PLAYWRIGHT_BROWSERS_PATH" ,
247- kwargs .get ("PLAYWRIGHT_BROWSERS_PATH" ) or self .PLAYWRIGHT_BROWSERS_PATH
248- )
247+ if playwright_path_env :
248+ os .environ .setdefault ("PLAYWRIGHT_BROWSERS_PATH" ,
249+ kwargs .get ("PLAYWRIGHT_BROWSERS_PATH" ) or self .PLAYWRIGHT_BROWSERS_PATH
250+ )
249251
250252 # if install:
251253 # from PlaywrightSafeThread.browser.plawright_shim import run_playwright
Original file line number Diff line number Diff line change 44long_description = open ("README.md" , encoding = "utf-8" ).read ()
55description = "PlaywrightSafeThread"
66
7- version = "0.5.3"
7+ version = "0.5.3.1 "
88
99setup (
1010 name = "PlaywrightSafeThread" ,
You can’t perform that action at this time.
0 commit comments