Scott Kostyshak wrote:

> The problem is that the script is being called with Python3 on your
> system. We either need to make sure the script is called with Python2 or
> (preferably) make the script compatible with Python3.

The former is safe and easy (see attached). I am not familiar enough with 
python3 to judge whether TeXFiles.py can be made work with python3 and 
python2 safely.


Georg
diff --git a/lib/configure.py b/lib/configure.py
index 0dcc4ce..cd2a0c5 100644
--- a/lib/configure.py
+++ b/lib/configure.py
@@ -1522,7 +1522,10 @@ def rescanTeXFiles():
     if not os.path.isfile( os.path.join(srcdir, 'scripts', 'TeXFiles.py') ):
         logger.error("configure: error: cannot find TeXFiles.py script")
         sys.exit(1)
-    tfp = cmdOutput("python -tt " + '"' + os.path.join(srcdir, 'scripts', 'TeXFiles.py') + '"')
+    interpreter = sys.executable
+    if interpreter == '':
+        interpreter = "python"
+    tfp = cmdOutput(interpreter + " -tt " + '"' + os.path.join(srcdir, 'scripts', 'TeXFiles.py') + '"')
     logger.info(tfp)
     logger.info("\tdone")
 

Reply via email to