]> git.lyx.org Git - features.git/commitdiff
Use pythonic syntax, as suggested by José.
authorRichard Heck <rgheck@lyx.org>
Sat, 3 Mar 2018 04:02:26 +0000 (23:02 -0500)
committerRichard Heck <rgheck@lyx.org>
Sat, 17 Mar 2018 19:44:05 +0000 (15:44 -0400)
(cherry picked from commit cec9edd34b9a43beadefd55d1755209e1acff191)

lib/configure.py
status.23x

index 23ec3c82dc43660ae8b6efeeae4b48b1e0601d44..b3d1f697db85cacf4696cb083d530a1983eb83c3 100644 (file)
@@ -1772,8 +1772,8 @@ def rescanTeXFiles():
     interpreter = sys.executable
     if interpreter == '':
         interpreter = "python"
-    tfp = cmdOutput(interpreter + " -tt " + '"'
-                    + os.path.join(srcdir, 'scripts', 'TeXFiles.py') + '"')
+    tfp = cmdOutput('"%s" -tt "%s"' % (interpreter,\
+          os.path.join(srcdir, 'scripts', 'TeXFiles.py')))
     logger.info(tfp)
     logger.info("\tdone")
 
index e1cfddbe3f08d7ee43e20ee67344f43130b6aa91..18ed4fac02c84025bddb6c297330e3df342933b2 100644 (file)
@@ -65,6 +65,8 @@ What's new
 
 * INTERNALS
 
+- Properly quote python interpreter when scanning TeX files.
+
 
 * DOCUMENTATION AND LOCALIZATION