- one.startscript(Systemcall::Wait,
- "sh " +
- quoteName(libFileSearch("scripts", "TeXFiles.sh")));
- // To be changed to
- // "python " +
- // quoteName(libFileSearch("scripts", "TeXFiles.py")));
+ int const status = one.startscript(Systemcall::Wait,
+ lyx::support::os::python() + ' ' +
+ quoteName(command.toFilesystemEncoding()));
+ if (status == 0)
+ return;
+ // FIXME UNICODE
+ Alert::error(_("Could not update TeX information"),
+ bformat(_("The script `%s' failed."), lyx::from_utf8(command.absFilename())));