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:
@@ -1,4 +1,4 @@
|
||||
path = 'c:/NeoZQYY/docs/h5_ui/compare/ORCHESTRATION-PLAN.md'
|
||||
path = 'c:/Project/NeoZQYY/docs/h5_ui/compare/ORCHESTRATION-PLAN.md'
|
||||
with open(path, 'rb') as f:
|
||||
raw = f.read()
|
||||
crlf = b'\r\n' in raw
|
||||
@@ -33,11 +33,11 @@ for i, line in enumerate(lines):
|
||||
break
|
||||
|
||||
if not found:
|
||||
open('c:/NeoZQYY/scripts/ops/_fix_status.txt','w').write('target not found')
|
||||
open('c:/Project/NeoZQYY/scripts/ops/_fix_status.txt','w').write('target not found')
|
||||
else:
|
||||
doc = '\n'.join(lines)
|
||||
if crlf:
|
||||
doc = doc.replace('\n', '\r\n')
|
||||
with open(path, 'wb') as f:
|
||||
f.write(doc.encode('utf-8'))
|
||||
open('c:/NeoZQYY/scripts/ops/_fix_status.txt','w').write('done')
|
||||
open('c:/Project/NeoZQYY/scripts/ops/_fix_status.txt','w').write('done')
|
||||
|
||||
Reference in New Issue
Block a user