]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/TeXFiles.py
Use libmagic for file format detection if available.
[lyx.git] / lib / scripts / TeXFiles.py
index e13425d8ef6f24b4247406ff8cb45d1d86b38afc..578fd56a43526050ac7b7070bc59e1e34b7d3c19 100755 (executable)
@@ -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 = ':'