On Wednesday 23 May 2007 12:04:17 pm Helge Hafting wrote: > I guess a different version of lyx2lyx ran when I ran lyx from the > build directory instead of installing it. :-/
If you run lyx2lyx from the build dir instead of the source dir you have to add an environment variable to be able to run it: $ PYTHONPATH=../../lyx/lyx-devel/lib/lyx2lyx/ src/lyx& Where path points to the source dir. The other option is to test the attached patch. Does it works for you? > Helge Hafting -- José Abílio
Index: lib/lyx2lyx/LyX.py =================================================================== --- lib/lyx2lyx/LyX.py (revision 18390) +++ lib/lyx2lyx/LyX.py (working copy) @@ -26,8 +26,11 @@ import re import time -import lyx2lyx_version -version_lyx2lyx = lyx2lyx_version.version +try: + import lyx2lyx_version + version_lyx2lyx = lyx2lyx_version.version +except: # we are running from build directory so assume the last version + version_lyx2lyx = '1.5.0svn' default_debug_level = 2