Skip to content

Commit 3fc6eaf

Browse files
committed
fix: 修改更新rag.exe 流程
1 parent b94c29a commit 3fc6eaf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ragService.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ const getPythonScriptPath = (extensionPath: string) => {
1717
if (isDevMode) {
1818
return path.join(extensionPath, 'src', 'python', 'rag.py'); // Development mode: run Python script directly
1919
} else {
20-
return path.join(extensionPath, 'dist', 'rag.exe'); // Production mode: run EXE
20+
const userHomeDir = os.homedir(); // 获取用户目录(如 C:\Users\aa)
21+
const targetDir = path.join(userHomeDir, 'CodeReDesignMemory');
22+
const exePath = path.join(targetDir, 'rag.exe');
23+
return exePath;
2124
}
2225
};
2326

0 commit comments

Comments
 (0)