mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
0492b82b77
When installing from Python.org, the `python` command isn't available by default (in favour of `py`). Support using `py` instead. There were issues running `hg` when `python` isn't added to the `PATH`, so the docs are being updated accordingly. Of course, it's still worth supporting `py`-instead-of-`python` workflows for `git` users who won't be impacted by that bug. Differential Revision: https://phabricator.services.mozilla.com/D136286
10 lines
139 B
Batchfile
10 lines
139 B
Batchfile
@ECHO OFF
|
|
SET topsrcdir=%~dp0
|
|
|
|
WHERE /q py
|
|
IF %ERRORLEVEL% EQU 0 (
|
|
py %topsrcdir%mach %*
|
|
) ELSE (
|
|
python %topsrcdir%mach %*
|
|
)
|