]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/TeXFiles.py
Natbib authoryear uses (Ref1; Ref2) by default.
[lyx.git] / lib / scripts / TeXFiles.py
index 48987ad9d8df51212318deb1f7a98762664ed1c0..578fd56a43526050ac7b7070bc59e1e34b7d3c19 100755 (executable)
@@ -1,13 +1,13 @@
 #!/usr/bin/env python
-# -*- coding: iso-8859-1 -*-
+# -*- coding: utf-8 -*-
 
 # file TeXFiles.py
 # This file is part of LyX, the document processor.
 # Licence details can be found in the file COPYING.
 
-# \author Herbert Voß
+# \author Herbert Voß
 # \author Jean-Marc Lasgouttes
-# \author Jürgen Spitzmüller
+# \author Jürgen Spitzmüller
 # \author Bo Peng
 
 # Full author contact details are available in file CREDITS.
@@ -55,7 +55,7 @@ if len(sys.argv) > 1:
         print '''Usage: TeXFiles.py [-version | cls | sty | bst | bib ]
             Default is without any Parameters,
             so that all files will be created'''
-        sye.exit(0)
+        sys.exit(0)
     else:
         types = sys.argv[1:]
         for type in types:
@@ -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 = ':'