Skip to content

leaguewizard

LeagueWizard main entry point.

main()

LeagueWizard main entry point function.

Source code in src\leaguewizard\__init__.py
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
def main() -> None:
    """LeagueWizard main entry point function."""
    logger.add(f"{log_dir}/log.txt", rotation="1MB")
    s = socket.socket()
    try:
        s.bind(("127.0.0.1", 54321))
    except OSError as e:
        raise LeWizardGenericError(
            message="Another instance is already running",
            show=True,
            title="Error!",
            exit=True,
        ) from e

    asyncio.run(start())