scriptCommand() relies on python3 being on PATH to run a ported Python script on Windows
还没有人认领这个 Issue。
评估
调研方向
Read include/util/Ecce.H:197-200 and compare its Windows Python command with the explicit interpreter paths used in src/apps/organizer/SiExport.C:191-192,259-260. Check how the Windows launcher sets PATH in packaging/windows/bundle-tools.ps1:92 and ecce.cmd. Done means the script command uses the bundled interpreter consistently; no user-visible failure is reported, so confirm the intended behavior before changing it.
由索引模型根据 Issue 内容生成。
描述
Ecce::scriptCommand() (include/util/Ecce.H:197-200) reads a script's shebang and, on Windows, returns:
if (first.find("perl") != string::npos) return "perl " + quoted;
if (first.find("python") != string::npos) return "python3 " + quoted;
Correction to the original report: this issue first claimed the Windows package has no python3, so the call would fail. That is wrong. packaging/windows/bundle-tools.ps1:92 copies python.exe to python3.exe, and ecce.cmd puts %ECCE_ROOT%\python on PATH — including for the MSI, whose shortcut runs ecce.vbs, which starts ECCE through ecce.cmd. So python3 does resolve, and nothing is broken today.
What remains is a weaker but real point: this is the only place that reaches the bundled interpreter through PATH rather than by path. Everywhere else that invokes it — src/apps/organizer/SiExport.C:191-192,259-260, and the ported exporters on the cx/868-* branches — resolves <ecceHome>/python/python.exe explicitly with a plain python.exe fallback. A PATH lookup picks up whatever python3 comes first, which on a developer's machine or a user's customised environment need not be the bundled one, and it is sensitive to anything that launches ECCE without ecce.cmd.
Worth making consistent with the rest of the tree while #868 is still converting scripts, rather than leaving one invocation that depends on the launcher's PATH. Low priority: no user-visible failure is known.
- 主要语言
- C
- 星标
- 10
- 派生
- 8
- 平均合并
- 6 小时 32 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
FriendsofECCE/ECCE 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
FriendsofECCE/ECCE#1358 ·
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
FriendsofECCE/ECCE#1353 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
FriendsofECCE/ECCE#1348 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
FriendsofECCE/ECCE#1347 ·
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
FriendsofECCE/ECCE#1345 ·
查看 FriendsofECCE/ECCE 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
vincentarelbundock/xtx#11 ·
-
难度 1/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 70/100
compiler-explorer/compiler-explorer#9738 ·
维护者通常 2 天内回复
-
难度 1/5 1-3 小时 新手友好度 88/100
维护者通常 3 天内回复
-
[Android Auto] MU1017 (MHI2Q_JP_AUG22_P1017) cluster map works with a pinned profile — values inside未关闭
难度 1/5 1 小时以内 新手友好度 92/100
kamgurgul/mib2q-carplay#74 ·