This commit is contained in:
2026-08-27 17:50:36 +02:00
commit 5a0e6520f4
51 changed files with 14027 additions and 0 deletions

28
ptdiag/__init__.py Normal file
View File

@@ -0,0 +1,28 @@
"""PristonTale EU Linux diagnostic harness and shared binary helpers."""
from typing import TYPE_CHECKING, Any
if TYPE_CHECKING:
from .config import AppConfig, ConfigError, load_config
__all__ = ["AppConfig", "ConfigError", "load_config"]
__version__ = "0.1.0"
def __getattr__(name: str) -> Any:
"""Load diagnostic configuration helpers only when the full harness needs them.
The production launcher ships only :mod:`ptdiag.assbin`, which it uses for
verified scene handling. Deferring the larger diagnostic-only imports keeps
the compact package importable without shipping the investigation harness.
"""
if name in {"AppConfig", "ConfigError", "load_config"}:
from .config import AppConfig, ConfigError, load_config
return {
"AppConfig": AppConfig,
"ConfigError": ConfigError,
"load_config": load_config,
}[name]
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")