INNER CODE UNIT · Python
AssetDB
skarndev/umodel_tools · umodel_tools/asset_db.py:6
class AssetDB:
"""Class to edit and save Blender asset catalog database.
"""
_version: int
_catalogs: dict[str, tuple[str, str]]
_db_cats_path: str
def __init__(self, db_root_path: str) -> None:
"""Initialize ``AssetDB``.
:param db_root_path: Asset root directory.
"""
self._version = 1
self._catalogs = {}
self._db_cats_path = os.path.join(db_root_path, 'blender_assets.cats.txt')
self._open_db(db_root_path)