#!/usr/bin/env python3 # kiwwom_trader/run.py # 진입점. 폴더를 /home/hoon 밑으로 옮겨도 KIWOOM_TRADER_ROOT / KIS_BOT_PATH 로 동작. import os import sys # 이 파일이 있는 디렉터리를 먼저 path에 넣어 같은 폴더의 config 로드 _run_dir = os.path.dirname(os.path.abspath(__file__)) if _run_dir not in sys.path: sys.path.insert(0, _run_dir) import config # noqa: F401 config.load_dotenv() def main(): from scalping_bot import ScalpingBotKiwoom bot = ScalpingBotKiwoom() bot.run() if __name__ == "__main__": main()