Files
nhentai/doujinshi_dl/core/config.py
Ricter Zheng 81d008036a Initial commit: doujinshi-dl generic plugin framework
History reset as part of DMCA compliance. The project has been
refactored into a generic, site-agnostic download framework.
Site-specific logic lives in separate plugin packages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-25 10:37:21 +08:00

17 lines
364 B
Python

# coding: utf-8
"""Runtime configuration store for the main package.
Plugins write their paths and settings here so that generic utilities
(e.g. db.py) can read them without hard-coding any plugin name.
"""
_runtime: dict = {}
def set(key: str, value) -> None:
_runtime[key] = value
def get(key: str, default=None):
return _runtime.get(key, default)