Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow wpt.py to be called from outside the WPT directory
Note that this is about wpt.py, which is a file specifically used for Windows, and not 'wpt' which is the main entry-point file. Previously wpt.py would just try to exec 'wpt' in the current working directory, which may not be the directory that contains 'wpt.py' (and thus, no 'wpt'!). To fix that, we os.chdir into the same directory as the __file__. Fixes web-platform-tests#23095
- Loading branch information