Bug 233936

Summary: [webkitcorepy] Fail to install python module when a working directory is not on C drive on Windows
Product: WebKit Reporter: Yousuke Kimoto <Yousuke.Kimoto>
Component: Tools / TestsAssignee: Yousuke Kimoto <Yousuke.Kimoto>
Status: RESOLVED FIXED    
Severity: Normal CC: jbedard, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch none

Description Yousuke Kimoto 2021-12-07 10:28:09 PST
On Windows, autoinstall.py fails to install python modules when your working directory is not on C drive.

For example, your working path is D:/working_dir and launching "run-webkit-httpd".
Then you will see:
   ImportError: No module named xxxxx
Because python modules are installed at C:/working_dir, "run-webkit-httpd" can't find the installed modules on your working directory (D drive).

For Windows, a drive letter where your working directory exists should be passed to "--root" option of "setup.py" in autoinstall.py.
Comment 1 Yousuke Kimoto 2021-12-07 10:52:06 PST
Created attachment 446203 [details]
patch
Comment 2 Yousuke Kimoto 2021-12-07 17:08:48 PST
Comment on attachment 446203 [details]
patch

Jonathan Bedard, thank you for reviewing.
Comment 3 EWS 2021-12-07 17:33:52 PST
Committed r286633 (?): <https://commits.webkit.org/r286633>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 446203 [details].
Comment 4 Radar WebKit Bug Importer 2021-12-07 17:34:24 PST
<rdar://problem/86185060>