def get_schema_dir(db_version=1):
    """Get path to directory with schemata.

    :param db_version: Version of the database
    :type db_version: int
    :return: Path
    :rtype: str
    """
    v = str(db_version)
    return os.path.join(_top_dir, '..', 'schemata', 'versions', v)
def get_schema_dir ( db_version = 1 ) : v = str ( db_version ) return os . path . join ( _top_dir , '..' , 'schemata' , 'versions' , v )
Get path to directory with schemata.

    :param db_version: Version of the database
    :type db_version: int
    :return: Path
    :rtype: str