configure.py assumes "python" command exists

José Abílio Matos jamatos at lyx.org
Mon Dec 27 19:30:46 UTC 2021


On Saturday, 25 December 2021 18.32.21 WET Scott Kostyshak wrote:
> On Sun, Oct 31, 2021 at 12:58:19PM -0400, Scott Kostyshak wrote:

Hi Scott,
  I find you choice of dates very convenient. :-)

https://journeys.dartmouth.edu/folklorearchive/2016/11/12/halloween-and-christmas/

“Why do programmers always mix up Halloween and Christmas?”
“Because Oct 31 = Dec 25.”
> Bump.
> 
> Scott

Regarding the problem at hand, as an example, my suggestion is to change:

\converter pdf4   pdf8  "python $$s/scripts/convert_pdf.py $$i $$o ebook"

to

\converter pdf4   pdf8  "$${python} $$s/scripts/convert_pdf.py $$i $$o ebook"

The idea is to use the converter code, e.g. the $$i $$o ..., and add there the 
substitution from $${python} to the python path that we have already 
determined in os::find_python.

Before doing that my question is if others are comfortable with this plan.

The idea of using that syntax is to be in the same spirit as the ones we 
already have:

$$i
$$o
$$s

and so on.

The idea of using the curly brackets is similar to what shell (almost all the 
variants) does.

I also intend to add the -t to the command invocation, and thus removing all 
those from configure.py.

Best regards,
-- 
José Abílio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20211227/ac3f6d85/attachment.html>


More information about the lyx-devel mailing list