chore: 迁移项目路径 C:\NeoZQYY → C:\Project\NeoZQYY
开发环境从旧虚拟机 (DESKTOP-KGB0K5G) 迁移到新机器 (DESKTOP-D676QDA), 项目目录从 C:\NeoZQYY 变更为 C:\Project\NeoZQYY, 批量替换 126 个文件中的绝对路径引用。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -18,7 +18,7 @@ The user requested a two-phase dataflow structure analysis for the feiqiu (飞
|
||||
|
||||
**Phase 2 - Report Generation**: Ran `gen_dataflow_report.py` to generate a comprehensive Markdown report with enhanced content (field diffs, coverage stats, business descriptions, sample values, cross-layer anchor links).
|
||||
|
||||
**Key challenge**: The shell's cwd was stuck at `C:\NeoZQYY\apps\etl\pipelines\feiqiu` and couldn't be changed (cd is forbidden). Both scripts require running from project root `C:\NeoZQYY` because they use relative paths for `.env` files and `TABLE_MAP` source parsing.
|
||||
**Key challenge**: The shell's cwd was stuck at `C:\Project\NeoZQYY\apps\etl\pipelines\feiqiu` and couldn't be changed (cd is forbidden). Both scripts require running from project root `C:\Project\NeoZQYY` because they use relative paths for `.env` files and `TABLE_MAP` source parsing.
|
||||
|
||||
**Solution**: Created wrapper scripts (`scripts/ops/_run_dataflow.py` and `scripts/ops/_run_report.py`) that use `os.chdir(root)` to set the correct working directory before importing and calling the main functions.
|
||||
|
||||
@@ -45,7 +45,7 @@ The user requested a two-phase dataflow structure analysis for the feiqiu (飞
|
||||
**DETAILS**: The workspace has an existing spec at `.kiro/specs/ods-dedup-standardize/` with tasks mostly completed (tasks 1-7 done, task 8 in-progress at subtasks 8.4-8.5, task 9 queued). This spec covers ODS dedup and soft-delete standardization. The dataflow analysis task was independent of this spec work.
|
||||
|
||||
**USER CORRECTIONS AND INSTRUCTIONS**:
|
||||
- Shell cwd is `C:\NeoZQYY\apps\etl\pipelines\feiqiu` — cannot use `cd` command, must use absolute paths or wrapper scripts
|
||||
- Shell cwd is `C:\Project\NeoZQYY\apps\etl\pipelines\feiqiu` — cannot use `cd` command, must use absolute paths or wrapper scripts
|
||||
- Scripts that need project root context should use `os.chdir()` in a wrapper
|
||||
- Follow `tech.md` script execution rules: prefer Python scripts over complex PowerShell
|
||||
- All output in simplified Chinese per `language-zh.md`
|
||||
|
||||
Reference in New Issue
Block a user