X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fscripts%2FTeXFiles.py;h=578fd56a43526050ac7b7070bc59e1e34b7d3c19;hb=3d4076b598deb18660e50ec9c327efc3b15f15d0;hp=48987ad9d8df51212318deb1f7a98762664ed1c0;hpb=2ae2c0db71bc88ac0c3e11c3cbd33e6a90ae8f6d;p=lyx.git diff --git a/lib/scripts/TeXFiles.py b/lib/scripts/TeXFiles.py index 48987ad9d8..578fd56a43 100755 --- a/lib/scripts/TeXFiles.py +++ b/lib/scripts/TeXFiles.py @@ -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 = ':'