On Thu, May 05, 2016 at 02:19:32PM +0200, Georg Baum wrote:
> 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.

I referenced this thread in #9006 for anyone who wants to work on the
long-run goal of making our scripts compatible with Python3.

Scott

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

Attachment: signature.asc
Description: PGP signature

Reply via email to