Use pythonic syntax, as suggested by José.

(cherry picked from commit cec9edd34b)
This commit is contained in:
Richard Heck 2018-03-02 23:02:26 -05:00
parent 11d20e132a
commit 96ec4d645b
2 changed files with 4 additions and 2 deletions

View 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")

View File

@ -65,6 +65,8 @@ What's new
* INTERNALS
- Properly quote python interpreter when scanning TeX files.
* DOCUMENTATION AND LOCALIZATION