File tree Expand file tree Collapse file tree 2 files changed +41
-4
lines changed Expand file tree Collapse file tree 2 files changed +41
-4
lines changed Original file line number Diff line number Diff line change 1+ --- 
2+ name : Bug Report 
3+ about : Something doesn't work like it should? Tell us! 
4+ title : " [BUG]" 
5+ labels : ' ' 
6+ assignees : ' ' 
7+ 
8+ --- 
9+ 
10+ ** Context:** 
11+ 
12+ -  Playwright Version: [ what Playwright version do you use?] 
13+ -  Operating System: [ e.g. Windows, Linux or Mac] 
14+ -  Python Version: [ e.g. 3.8, 3.9] 
15+ 
16+ <!--  CLI to auto-capture this info --> 
17+ <!--  playwright envinfo --> 
18+ 
19+ ** Code Snippet** 
20+ 
21+ Help us help you! Put down a short code snippet that illustrates your bug and
22+ that we can run and debug locally. For example:
23+ 
24+ ``` python 
25+ ... 
26+ ``` 
27+ 
28+ ** Describe the bug** 
29+ 
30+ Add any other details about the problem here.
Original file line number Diff line number Diff line change 1313# limitations under the License. 
1414
1515import  os 
16+ import  platform 
1617import  subprocess 
1718import  sys 
1819
1920from  playwright ._impl ._driver  import  compute_driver_executable 
21+ from  playwright ._repo_version  import  version 
2022
2123
2224def  main () ->  None :
23-  driver_executable  =  compute_driver_executable ()
24-  my_env  =  os .environ .copy ()
25-  my_env ["PW_CLI_TARGET_LANG" ] =  "python" 
26-  subprocess .run ([str (driver_executable ), * sys .argv [1 :]], env = my_env )
25+  if  "envinfo"  in  sys .argv :
26+  print (f"- Playwright Version: { version }  )
27+  print (f"- Operating System: { platform .platform ()}  )
28+  print (f"- Python Version: { sys .version }  )
29+  else :
30+  driver_executable  =  compute_driver_executable ()
31+  env  =  os .environ .copy ()
32+  env ["PW_CLI_TARGET_LANG" ] =  "python" 
33+  subprocess .run ([str (driver_executable ), * sys .argv [1 :]], env = env )
2734
2835
2936if  __name__  ==  "__main__" :
                         You can’t perform that action at this time. 
           
                  
0 commit comments