]> git.lyx.org Git - lyx.git/commitdiff
* configure.py : Fix the rc entry when tex2lyx is not found (#3308).
authorJulien Rioux <jrioux@lyx.org>
Wed, 7 Sep 2011 23:59:14 +0000 (23:59 +0000)
committerJulien Rioux <jrioux@lyx.org>
Wed, 7 Sep 2011 23:59:14 +0000 (23:59 +0000)
We still define the tex2lyx converter but we emit a warning.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39642 a592a061-630c-0410-9148-cb99ea01b6c8

lib/configure.py

index 43127d001f0d20d93a184879f722c3ad689e1a60..3dde90d6f84177d82da74b2ff7c9e30faa552360 100644 (file)
@@ -627,9 +627,11 @@ def checkConverterEntries(java='', perl=''):
         os.pathsep + path_orig
 
 # First search for tex2lyx with version suffix (bug 6986)
-    checkProg('a LaTeX/Noweb -> LyX converter', ['tex2lyx' + version_suffix, 'tex2lyx'],
+    path, t2l = checkProg('a LaTeX/Noweb -> LyX converter', ['tex2lyx' + version_suffix, 'tex2lyx'],
         rc_entry = [r'''\converter latex      lyx        "%% -f $$i $$o"       ""
-\converter literate   lyx        "%% -n -f $$i $$o"    ""'''])
+\converter literate   lyx        "%% -n -f $$i $$o"    ""'''], not_found = 'tex2lyx')
+    if path == '':
+        logger.warning("Failed to find tex2lyx on your system.")
 
     os.environ["PATH"] = path_orig