More Python2

This commit is contained in:
Anthony Scemama 2018-04-27 15:18:22 +02:00
parent abc3d5d1bc
commit 1b97fa4599
8 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# IRPF90 is a Fortran90 preprocessor written in Python for programming using
# the Implicit Reference to Parameters (IRP) method.
# Copyright (C) 2009 Anthony SCEMAMA

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# IRPF90 is a Fortran90 preprocessor written in Python for programming using
# the Implicit Reference to Parameters (IRP) method.
# Copyright (C) 2009 Anthony SCEMAMA

View File

@ -28,7 +28,7 @@
function run ()
{
cat << EOF | exec python - $@
cat << EOF | exec python2 - $@
import sys, os
from irpf90_libs.irpf90_t import mandir

View File

@ -1,4 +1,4 @@
PYTHON=python
PYTHON=python2
PYVERSION=$(shell $(PYTHON) -c "import sys; print(sys.version[:3])")
HAS_CYTHON=$(shell bash -c "which cython &> /dev/null && echo 1 || echo 0")
ifneq ($(HAS_CYTHON),0)

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# IRPF90 is a Fortran90 preprocessor written in Python for programming using
# the Implicit Reference to Parameters (IRP) method.
# Copyright (C) 2009 Anthony SCEMAMA

View File

@ -321,7 +321,7 @@ def execute_templates(text):
file.close()
# Execute shell
import os
pipe = os.popen("python < %s"%(scriptname),'r')
pipe = os.popen("python2 < %s"%(scriptname),'r')
lines = pipe.readlines()
pipe.close()
result += get_text(lines,scriptname)

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import os,sys
ROOT = os.path.dirname(__file__)+'/../../'

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import os
ROOT = os.path.dirname(__file__)+'/../../'