Skip to content

Commit 170c6db

Browse files
committed
update memap command
1 parent bf64cfa commit 170c6db

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1799,8 +1799,10 @@ class MapViewEditorProvider implements vscode.CustomTextEditorProvider {
17991799
}
18001800

18011801
if (os.platform() == 'win32') {
1802+
// "%USERPROFILE%\.eide\bin\python36\python3" -m memap %*
1803+
const py3 = ResManager.instance().getPython3();
18021804
lines = ChildProcess
1803-
.execSync(`memap -t ${memapTyp} -d ${vInfo.treeDepth} "${vInfo.mapPath}"`)
1805+
.execFileSync(py3, ['-m', 'memap', '-t', memapTyp, '-d', vInfo.treeDepth.toString(), vInfo.mapPath])
18041806
.toString().split(/\r\n|\n/);
18051807
} else {
18061808
const memapRoot = ResManager.GetInstance().getLegacyBuilderDir().path + File.sep + 'utils';

0 commit comments

Comments
 (0)