r""" Salud eCW charge-entry bot — entry point. python run.py This is the only supported way to start the bot, and the two lines below are why it exists. The old layout was a folder of flat modules run as `python src\main.py`, which worked *only* because Python puts the script's own directory on `sys.path` — so `import config` resolved. Any other way of starting it (VS Code's "Run File" on a different file, Task Scheduler, pytest, `python -m`) broke with ImportError. A package plus this shim fixes that: the import path no longer depends on which file you happened to launch. """ import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parent / "src")) from ecw_bot.flows.export_medcor_ready import main # noqa: E402 if __name__ == "__main__": sys.exit(main())