]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/TeXFiles.py
Add a preference option to specify the default length unit (cm or in).
[lyx.git] / lib / scripts / TeXFiles.py
index 3c3753f7c4b5033d711a56f73fd137726584ef64..578fd56a43526050ac7b7070bc59e1e34b7d3c19 100755 (executable)
@@ -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 = ':'