scriptCommand() relies on python3 being on PATH to run a ported Python script on Windows
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- C
- Stelle
- 10
- Fork
- 8
- Merge medio
- 6h 32m
- PR unite (30g)
- 1
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di FriendsofECCE/ECCE
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
FriendsofECCE/ECCE#1358 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
FriendsofECCE/ECCE#1353 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
FriendsofECCE/ECCE#1348 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
FriendsofECCE/ECCE#1347 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
FriendsofECCE/ECCE#1345 ·
Tutte le issue di FriendsofECCE/ECCE
Issue simili
-
Installation fails from source: missing libintl.h on macOS, undeclared R_typeToChar() on R 4.6Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
vincentarelbundock/xtx#11 ·
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
compiler-explorer/compiler-explorer#9738 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 3 giorni
-
[Android Auto] MU1017 (MHI2Q_JP_AUG22_P1017) cluster map works with a pinned profile — values insideAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
kamgurgul/mib2q-carplay#74 ·