Date: prev next · Thread: first prev next last
2018 Archives by date, by thread · List index


On 21.02.2018 09:19, Samuel Thibault wrote:
Rene Engelhard, on mer. 21 févr. 2018 09:11:02 +0100, wrote:
diff --git a/bin/gla11y b/bin/gla11y
new file mode 100755
index 000000000000..d0619133ad0f
--- /dev/null
+++ b/bin/gla11y
@@ -0,0 +1,216 @@
+#!/usr/bin/env python

That's "python". Python2.

It works with either python2 or python3

+    AC_MSG_CHECKING([for python lxml])
+    if $PYTHON -c "import lxml.etree as ET" ; then

Here it checks for lxml in the system python. This is a a 3.x.
Because for python3-uno in Debian, of course python3 is used.
And LOs internal python also is python3.

But the actual script (see above) calls "python" and not "python3"

Mmm, so we should make it a .py.in file to be able to put @PYTHON@ in the script?

Drop the shebang line and call it as `$(PYTHON) $(SRCDIR)/bin/gla11y` from the makefile?

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.