I found a partial answer from the built-in function,
execfile('Coope rPair.py', globals() )
This does execute in a new shell, which behaviour I do want sometimes,
but my shell is already open when I respond to an input prompt, and I want the file to execute in this same shell, so that all variables will still be defined....
User Profile
Collapse
-
Running Win XP application programs.or Python .py file from script
From a python module, I want to run any.py module, to open it in the shell, just like if I were in IDLE editor and selecting EDIT / Run Module.
I have tried a lot of things, including importing a python.py file
such as, CooperPairs.py, which only has print statements.
This module is not a function, and should not be compiled.
import CooperPairs
( Runs one time).
Also, I have used...
No activity results to display
Show More
Leave a comment: