author Gregory Szorc <>
Mon, 23 Jan 2017 17:22:54 -0800
changeset 691174 1550fe5c904f8c8960a32c74f59a438909f290b8
parent 360276 7db4622ae530570abaf69b6ce2ffc6b08bdaa3d8
permissions -rwxr-xr-x
global: update vendored pyflakes from 0.7.3 to 1.5.0 MozReview-Commit-ID: HwxUUi0rL9W

#!/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', '')
        execfile(activate, dict(__file__=activate))
        sys.executable = os.path.join(HERE, 'venv', 'bin', 'python')

    from mach.main import Mach

    m = Mach(os.getcwd())

    m.define_category('mozreview', 'MozReview',
        'Control and Interact with the Mozilla Code Review Service', 50)
    import vcttesting.mozreview_mach_commands


if __name__ == '__main__':