scriptCommand() relies on python3 being on PATH to run a ported Python script on Windows
まだ誰も着手していません。
評価
調査の方向性
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分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 ·