Added more folders and restructured classes inside them.
This commit is contained in:
28
src/ptdiag/__init__.py
Normal file
28
src/ptdiag/__init__.py
Normal 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 launcher release retains :mod:`ptdiag.assbin` and :mod:`ptdiag.logs` as
|
||||
compatibility façades. 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}")
|
||||
Reference in New Issue
Block a user