mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-04 10:07:23 -04:00
Changed merge_jsonl.py to use os.getcwd() instead of os.path.dirname(__file__) to ensure merged.jsonl is written to the working directory where data files exist, not to the script's installation directory. Root cause: - Dockerfile copies scripts to /app/scripts/ for volume compatibility - entrypoint.sh runs: cd /app/data && python /app/scripts/merge_jsonl.py - Old logic used script directory (/app/scripts/), ignoring working directory - This caused merged.jsonl to be created in /app/scripts/ instead of /app/data/ - Since /app/data/ is volume-mounted, merged file was not visible to host Solution: - Scripts now respect current working directory (Unix philosophy) - Works correctly with volume mounts and script relocation - Tested in both local and Docker directory structure scenarios Fixes the issue where merged.jsonl was missing from mounted data volume.
3.2 KiB
3.2 KiB