"""Allow running the package as a module: python -m iqtoolkit_analyzer."""

import os

try:
    from dotenv import load_dotenv

    # By default, load .env for convenience, but allow disabling it
    # (e.g. in production/CI) via IQTOOLKIT_ANALYZER_DISABLE_DOTENV=1.
    if os.getenv("IQTOOLKIT_ANALYZER_DISABLE_DOTENV") != "1":
        load_dotenv()
except ImportError:
    pass

from iqtoolkit_analyzer.cli.main import main

if __name__ == "__main__":
    main()
