mozreview
author Ehsan Akhgari <ehsan@mozilla.com>
Thu, 27 Nov 2014 16:08:16 -0500
changeset 359946 8d5e83acd3b07ddf507a07cad2efc858c480c9c9
parent 359825 7f1dd03aa08d9cdee4e9152ce0fdaa52f51af29a
child 360256 17f4091a1f7b876e4d3a4f50ef06e3886ba80e03
permissions -rwxr-xr-x
Add myself to the list of WebIDL reviewers

#!/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 http://mozilla.org/MPL/2.0/.

import os
import sys

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

def main(args):
    activate = os.path.join(HERE, 'venv', 'bin', 'activate_this.py')
    execfile(activate, dict(__file__=activate))
    sys.executable = os.path.join(HERE, 'venv', 'bin', 'python')

    sys.path.insert(0, os.path.join(HERE, 'testing'))

    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

    return m.run(args)

if __name__ == '__main__':
    sys.exit(main(sys.argv[1:]))