Author: forenr
Date: Sun May  8 23:09:38 2011
New Revision: 38646
URL: http://www.lyx.org/trac/changeset/38646

Log:
MikTeX's kpsewhich doesn't mention "kpathsea emulation" anymore.
On Cygwin, the most reliable way to tell what is the right path
separator to use is a direct check.

Modified:
   lyx-devel/trunk/lib/scripts/TeXFiles.py

Modified: lyx-devel/trunk/lib/scripts/TeXFiles.py
==============================================================================
--- lyx-devel/trunk/lib/scripts/TeXFiles.py     Sun May  8 22:39:22 2011        
(r38645)
+++ lyx-devel/trunk/lib/scripts/TeXFiles.py     Sun May  8 23:09:38 2011        
(r38646)
@@ -73,9 +73,7 @@
 # Create a variable that holds the right character to be used by the scripts.
 path_sep = os.pathsep
 if sys.platform == 'cygwin':
-    # MikTeX's kpsewhich says "kpathsea emulation version x.x.x", whereas
-    # teTeX's simply "kpathsea version x.x.x".
-    if 'emulation' in cmdOutput('kpsewhich --version'):
+    if ';' in cmdOutput('kpsewhich --show-path=.tex'):
         path_sep = ';'
     else:
         path_sep = ':'

Reply via email to