pricedb/dal.py
def get_default_session():
    """ Return the default session. The path is read from the default config. """
    from .config import Config, ConfigKeys

    db_path = Config().get(ConfigKeys.price_database)
    if not db_path:
        raise ValueError("Price database not set in the configuration file!")
    return get_session(db_path)
def get_default_session():
    from .config import Config, ConfigKeys

    db_path = Config().get(ConfigKeys.price_database)
    if not db_path:
        raise ValueError("Price database not set in the configuration file!")
    return get_session(db_path)
def get_default_session ( ) : from . config import Config , ConfigKeys db_path = Config ( ) . get ( ConfigKeys . price_database ) if not db_path : raise ValueError ( "Price database not set in the configuration file!" ) return get_session ( db_path )
Return the default session. The path is read from the default config.
Return the default session . The path is read from the default config .