10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-11-07 06:33:43 +01:00

Updated python -> python3

This commit is contained in:
Anthony Scemama 2023-10-19 17:50:35 +02:00
parent 0007f72f67
commit 4ab1b175fc
4 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ RST2MAN=rst2man -d -t
default: man1/irpman.1.gz man1/irpf90.1.gz default: man1/irpman.1.gz man1/irpf90.1.gz
options.rst: ../src/command_line.py options.rst: ../src/command_line.py
python ../src/command_line.py > options.rst python3 ../src/command_line.py > options.rst
man1/irpf90.1.gz: irpf90.rst options.rst man1/irpf90.1.gz: irpf90.rst options.rst
rm -f $@ ; $(RST2MAN) --title="IRP Fortran 90" irpf90.rst man1/irpf90.1 ; gzip man1/irpf90.1 rm -f $@ ; $(RST2MAN) --title="IRP Fortran 90" irpf90.rst man1/irpf90.1 ; gzip man1/irpf90.1

View File

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

View File

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

View File

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