configure.py assumes "python" command exists
Scott Kostyshak
skostysh at lyx.org
Mon Apr 26 04:12:50 UTC 2021
On Wed, Feb 24, 2021 at 01:19:30PM -0500, Scott Kostyshak wrote:
> On Tue, Feb 23, 2021 at 06:40:46PM +0000, José Abílio Matos wrote:
> > On Monday, February 15, 2021 3:25:45 PM WET Scott Kostyshak wrote:
> > > +1
> > >
> > > Thanks for taking a look, José.
> > >
> > > Scott
> >
> > OK. I have lots of issues on hand but at least this is funny. :-)
> >
> > One option would be to use some kind of string formatting. Actually since
> > curly braces are usually not used in OS we could use the string format syntax
> > (that is also used in C++20 format). One example would be:
> >
> > \converter pdf4 pdf8 "{python} $$s/scripts/convert_pdf.py $$i $$o ebook"...
> >
> > The lyx could convert internally {python} to the python path. Since lyx
> > already has this information, or else it would not call configure.py
> >
> > If you do not like this option one in the same line as the other
> > interpolations that we apply is to use $${python}.
> >
> > The other option is to replace this in configure.py like in the following
> > patch that I have not yet tested.
> >
> > What do you think?
>
> Thanks for working on it, José! I don't have an opinion on which
> approach is best. I can test the patch, but first perhaps I'll wait to
> see if others have comments.
Does anyone have an opinion on the options José proposed?
Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210426/c0079a9f/attachment.asc>
More information about the lyx-devel
mailing list