#!/usr/bin/env python

import os
import sys


# If ../cc2541/__init__.py exists, add ../ to Python search path, so that
# it will override what happens to be installed in /usr/(local/)lib/python...
possible_topdir = os.path.normpath(os.path.join(os.path.abspath(__file__),
                                   os.pardir,
                                   os.pardir))
if os.path.exists(os.path.join(possible_topdir,
                               'cc2541',
                               '__init__.py')):
    sys.path.insert(0, possible_topdir)


from cc2541.driver import main as cc2541_cli


if __name__ == '__main__':
    cc2541_cli()