#!/usr/bin/env python3

"""
This is a place holder script for use in testing.

The actual script which is installed is generated by python-setuptools.
"""

import os
import sys
# Prepend the bloom source directory to the path
bloom_src = os.path.join(os.path.dirname(__file__), '..', 'bloom')
if os.path.exists(bloom_src):
    sys.path.insert(0, os.path.abspath(os.path.dirname(bloom_src)))
# Prepend the scripts directory to the path
scripts_dir = os.path.join(os.path.dirname(__file__), '..', 'scripts')
if os.path.exists(scripts_dir):
    os.environ['PATH'] = os.path.abspath(scripts_dir) + \
        (':' + os.environ['PATH'] if 'PATH' in os.environ else '')

from bloom.commands.git.import_upstream import main

if __name__ == '__main__':
    sys.exit(main() or 0)
