Jürgen Spitzmüller wrote:
Yes. This bug occured with the integration of lyx_1_6.py into 1.5.7, because that file needs to access the unicodesymbols file, and lyx2lyx is used by doc_toc.py.

lyx_1.6.py assumes that the script directory is the current working directory, which is not always the case. The attached patch solves this issue.

Joost
Index: lib/lyx2lyx/lyx_1_6.py
===================================================================
--- lib/lyx2lyx/lyx_1_6.py      (revision 27555)
+++ lib/lyx2lyx/lyx_1_6.py      (working copy)
@@ -129,7 +129,7 @@
 
 def read_unicodesymbols():
     " Read the unicodesymbols list of unicode characters and corresponding 
commands."
-    pathname = os.path.abspath(os.path.dirname(sys.argv[0]))
+    pathname = os.path.dirname(os.path.realpath(__file__))
     pathname = pathname.rstrip('lyx2lyx')
     # from within doc_toc.py, we are in lib/doc
     pathname = pathname.rstrip('doc')

Reply via email to