commit 490506c45f200093229e7d7289aa1b3195783cf1
Author: Richard Heck <rgh...@lyx.org>
Date:   Fri Mar 2 23:12:11 2018 -0500

    Simplify code a bit.
---
 lib/configure.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/configure.py b/lib/configure.py
index b3d1f69..6f8efcd 100644
--- a/lib/configure.py
+++ b/lib/configure.py
@@ -1766,14 +1766,14 @@ def checkTeXAllowSpaces():
 def rescanTeXFiles():
     ''' Run kpsewhich to update information about TeX files '''
     logger.info("+Indexing TeX files... ")
-    if not os.path.isfile( os.path.join(srcdir, 'scripts', 'TeXFiles.py') ):
+    tfscript = os.path.join(srcdir, 'scripts', 'TeXFiles.py')
+    if not os.path.isfile(tfscript):
         logger.error("configure: error: cannot find TeXFiles.py script")
         sys.exit(1)
     interpreter = sys.executable
     if interpreter == '':
         interpreter = "python"
-    tfp = cmdOutput('"%s" -tt "%s"' % (interpreter,\
-          os.path.join(srcdir, 'scripts', 'TeXFiles.py')))
+    tfp = cmdOutput('"%s" -tt "%s"' % (interpreter, tfscript))
     logger.info(tfp)
     logger.info("\tdone")
 

Reply via email to