def get_session(autocommit=True, expire_on_commit=False):
    global _MAKER, _ENGINE
    if not _MAKER:
        assert _ENGINE
        _MAKER = sessionmaker(bind=_ENGINE,
                              autocommit=autocommit,
                              expire_on_commit=expire_on_commit)
    return _MAKER()
Joins one or more path components to the base path component intelligently.
dataset/ETHPy150Open rcbops/glance-buildpackage/glance/registry/db/api.py/get_session--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/utils/_os.py/safe_join