mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 12:26:59 +00:00
Simplify code a bit.
This commit is contained in:
parent
175ba16966
commit
490506c45f
@ -1766,14 +1766,14 @@ def checkTeXAllowSpaces():
|
|||||||
def rescanTeXFiles():
|
def rescanTeXFiles():
|
||||||
''' Run kpsewhich to update information about TeX files '''
|
''' Run kpsewhich to update information about TeX files '''
|
||||||
logger.info("+Indexing 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")
|
logger.error("configure: error: cannot find TeXFiles.py script")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
interpreter = sys.executable
|
interpreter = sys.executable
|
||||||
if interpreter == '':
|
if interpreter == '':
|
||||||
interpreter = "python"
|
interpreter = "python"
|
||||||
tfp = cmdOutput('"%s" -tt "%s"' % (interpreter,\
|
tfp = cmdOutput('"%s" -tt "%s"' % (interpreter, tfscript))
|
||||||
os.path.join(srcdir, 'scripts', 'TeXFiles.py')))
|
|
||||||
logger.info(tfp)
|
logger.info(tfp)
|
||||||
logger.info("\tdone")
|
logger.info("\tdone")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user