#!/usr/bin/env python
# bang
# ====
#
# Copyright 2012 - John Calixto
#
# This file is part of bang.
#
# bang is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# bang is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with bang.  If not, see <http://www.gnu.org/licenses/>.
#
import sys

try:
    import bang
except ImportError:
    # maybe we're running from a checkout
    import os.path
    BANG_SRC_DIR = os.path.abspath(
        os.path.join(
            os.path.dirname(__file__),
            '..',
            )
        )
    sys.path.insert(0, BANG_SRC_DIR)
    import bang

from bang.cmd_bang import run_bang


if __name__ == '__main__':
    run_bang()
