scriptCommand() relies on python3 being on PATH to run a ported Python script on Windows

Abierto
#1,325 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
c, python
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug

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.

Lenguaje dominante
C
Estrellas
10
Forks
8
Merge medio
6 h 32 min
PR fusionados (30 d)
1

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de FriendsofECCE/ECCE

Todos los issues de FriendsofECCE/ECCE

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.