servo/mach
author Ms2ger <ms2ger@gmail.com>
Mon, 05 Jan 2015 08:09:53 -0700
changeset 382194 e15b4e7bbe846302625f8251d65bc6dcdbb03459
parent 381520 011d6feca67a86ea040809de94e51c634766265f
child 383803 f85e0eba385cbdd40a2fbc649e57d967d882e437
permissions -rwxr-xr-x
servo: Merge #4550 - Rename MouseWindowEvent variants (from Ms2ger:MouseWindowEvent); r=jdm Source-Repo: https://github.com/servo/servo Source-Revision: ca876edc051c9b105747252155d0f11c31189646

#!/bin/sh
# 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/.

# The beginning of this script is both valid shell and valid python,
# such that the script starts with the shell and is reexecuted with
# the right python.
'''which' python2.7 > /dev/null && exec python2.7 "$0" "$@" || exec python "$0" "$@"
'''

from __future__ import print_function, unicode_literals

import os
import sys

def main(args):
    topdir = os.path.dirname(sys.argv[0])
    sys.path[0:0] = [os.path.join(topdir, "python")]
    import mach_bootstrap
    mach = mach_bootstrap.bootstrap(topdir)
    sys.exit(mach.run(sys.argv[1:]))

if __name__ == '__main__':
    main(sys.argv)