improvements
This commit is contained in:
@@ -38,12 +38,15 @@ try:
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
# Make src/ importable when running as `python main.py`.
|
||||
# Make src/ importable when running as `python main.py`. Import the
|
||||
# modules by their plain names (not `src.X`) so they are the same module
|
||||
# objects the src-internal imports resolve to — `src.X` would load every
|
||||
# module twice under two names.
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parent / "src"))
|
||||
|
||||
from src.MatchesCache import MatchesCache # noqa: E402
|
||||
from src.LightNovelOrchestrator import LightNovelOrchestrator # noqa: E402
|
||||
from src.MatchesWebApp import MatchesWebApp # noqa: E402
|
||||
from MatchesCache import MatchesCache # noqa: E402
|
||||
from LightNovelOrchestrator import LightNovelOrchestrator # noqa: E402
|
||||
from MatchesWebApp import MatchesWebApp # noqa: E402
|
||||
|
||||
|
||||
def _env_str(name: str, default: "str | None" = None,
|
||||
|
||||
Reference in New Issue
Block a user