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