Use pythonic syntax, as suggested by José.

This commit is contained in:
Richard Heck 2018-03-02 23:02:26 -05:00
parent 9cdae51688
commit cec9edd34b

View File

@ -1777,8 +1777,8 @@ def rescanTeXFiles():
interpreter = sys.executable interpreter = sys.executable
if interpreter == '': if interpreter == '':
interpreter = "python" interpreter = "python"
tfp = cmdOutput('"' + interpreter + '"' + " -tt " + '"' tfp = cmdOutput('"%s" -tt "%s"' % (interpreter,\
+ os.path.join(srcdir, 'scripts', 'TeXFiles.py') + '"') os.path.join(srcdir, 'scripts', 'TeXFiles.py')))
logger.info(tfp) logger.info(tfp)
logger.info("\tdone") logger.info("\tdone")