author Connor Sheehan <>
Fri, 15 May 2020 16:38:45 +0000
changeset 7541 525d21339c70db7268e6d9340a7dc46a96f79e94
parent 6915 2c7002f9e7889960a0f7f8da73c2029be185d7a3
permissions -rwxr-xr-x
testing: set shebang python to just `env python` (Bug 1598958) r=zeid So we can run these scripts with Py3. Differential Revision:

#!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at

import os
import sys

HERE = os.path.abspath(os.path.dirname(__file__))

def main(args):
    if 'VIRTUAL_ENV' not in os.environ:
        activate = os.path.join(HERE, 'venv', 'bin', '')
        with open(activate) as f:
            exec(, dict(__file__=activate))
        sys.executable = os.path.join(HERE, 'venv', 'bin', 'python')

    from mach.main import Mach

    m = Mach(os.getcwd())

    m.define_category('treestatus', 'Treestatus',
        'Control and interact with Treestatus', 50)
    import vcttesting.treestatus_mach_commands


if __name__ == '__main__':