зеркало из https://github.com/mozilla/gecko-dev.git
d3ccaac56c
On Windows in Python 2, the subprocess module requires the use of bytes with the 'env' argument. For that reason, we would sometimes use byte strings with 'os.environ' like so: os.environ[b"FOO"] = b"bar" However, this is a failure with Python 3 as 'os.environ' must only be used with the text type. This patch creates a new 'setenv' helper that ensures we create new environment with 'bytes' on Python 2, and 'text' on Python 3. Differential Revision: https://phabricator.services.mozilla.com/D38237 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
docs | ||
mach | ||
README.rst | ||
bash-completion.sh | ||
setup.py |
README.rst
==== mach ==== Mach (German for *do*) is a generic command dispatcher for the command line. To use mach, you install the mach core (a Python package), create an executable *driver* script (named whatever you want), and write mach commands. When the *driver* is executed, mach dispatches to the requested command handler automatically. To learn more, read the docs in ``docs/``.