scriptCommand() relies on python3 being on PATH to run a ported Python script on Windows
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 55/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- C
- Sterne
- 10
- Forks
- 8
- Ø Merge
- 6 Std. 32 Min.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus FriendsofECCE/ECCE
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
FriendsofECCE/ECCE#1358 ·
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
FriendsofECCE/ECCE#1353 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
FriendsofECCE/ECCE#1348 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
FriendsofECCE/ECCE#1347 ·
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
FriendsofECCE/ECCE#1345 ·
Alle Issues in FriendsofECCE/ECCE
Ähnliche Issues
-
Installation fails from source: missing libintl.h on macOS, undeclared R_typeToChar() on R 4.6Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
vincentarelbundock/xtx#11 ·
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 88/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
compiler-explorer/compiler-explorer#9738 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 3 Tagen
-
[Android Auto] MU1017 (MHI2Q_JP_AUG22_P1017) cluster map works with a pinned profile — values insideOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
kamgurgul/mib2q-carplay#74 ·