I am trying to launch a python 2.7 script called pp.py
from a Python 3.6 script.
I am working on Windows 7
This is the 2.7 script:
#! C:\Python27\python.exe
import sys
sys.stdout.write("Hello from version %s\n" % (sys.version,))
If I launch it from the cmd window, it will return that it is using the 2.7 version, but if I call it from the 3.6 script with this instruction:
exec(open("pp.py").read())
then it will answer that it is using Python 3.6
Any ideas?