From 5791d41544e12559abda8166fafad893c37de41f Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 8 May 2011 21:09:38 +0000 Subject: [PATCH] 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. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38646 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/scripts/TeXFiles.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/scripts/TeXFiles.py b/lib/scripts/TeXFiles.py index e13425d8ef..578fd56a43 100755 --- a/lib/scripts/TeXFiles.py +++ b/lib/scripts/TeXFiles.py @@ -73,9 +73,7 @@ else: # 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 = ':'