Alex Fernandez schrieb:
Just consider that on Linux (e.g. Debian) package installation is
completely different: each package places a binary in /usr/bin, and
they are all supposed to work together without making any copies
anywhere. That is why the execution path is so important on Linux.
>>
Yes, the current code only works on Windows as mentioned above. I will send
a patch that will hopefully also work on Linux.
The attached patch runs elyer.py from the bin folder of LyX (the folder where the lyx.exe resides).
Does the patch work also on Linux?
regards Uwe
p.s. I think I found the ext_copy.py problem: ext_copy.py works correct, the problem are the
converter setting in LyX. I'll try to find a fix.
Index: configure.py
===================================================================
--- configure.py (revision 31691)
+++ configure.py (working copy)
@@ -390,7 +390,7 @@
rc_entry = [ r'\converter word latex "%%" ""' ])
#
path, elyxer = checkProg('a LyX -> HTML converter', ['elyxer.py', 'elyxer'],
- rc_entry = [ r'\converter lyx html "python -tt $$s/scripts/elyxer.py --directory $$r $$i $$o" ""' ])
+ rc_entry = [ r'\converter lyx html "python -tt $$s/../bin/elyxer.py --directory $$r $$i $$o" ""' ])
if elyxer.find('elyxer') >= 0:
addToRC(r'''\copier html "python -tt $$s/scripts/ext_copy.py -e html,png,jpg,jpeg,css $$i $$o"''')
else: