def main(argv=sys.argv):
    if len(argv) != 2:
        usage(argv)
    config_uri = argv[1]
    settings = get_appsettings(config_uri)
    engine = create_engine('pyshop', settings, scoped=False)

    config = Configurator(settings=settings)
    config.end()

    from pyshop.models import (User, Group,
                               Classifier, Package, Release, ReleaseFile)

    session = DBSession()
    try:
        from IPython import embed
        from IPython.config.loader import Config
        cfg = Config()
        cfg.InteractiveShellEmbed.confirm_exit = False
        embed(config=cfg, banner1="Welcome to PyShop shell.")
    except __HOLE__:
        import code
        code.interact("pyshop shell", local=locals())
dataset/ETHPy150Open mardiros/pyshop/pyshop/bin/shell.py/main