Bug 233936 - [webkitcorepy] Fail to install python module when a working directory is not on C drive on Windows
Summary: [webkitcorepy] Fail to install python module when a working directory is not ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yousuke Kimoto
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-12-07 10:28 PST by Yousuke Kimoto
Modified: 2021-12-07 17:34 PST (History)
2 users (show)

See Also:


Attachments
patch (2.34 KB, patch)
2021-12-07 10:52 PST, Yousuke Kimoto
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>