How to call another file

Emile van Sebille emile at fenx.com
Mon May 13 18:57:14 EDT 2002


"Catherine Yang"
> It doesn't matter what file it is. It can be a C file. By "calling", I
mean
> executing another file. I want to use Python to finish some tasks,
then use
> another file (*.sas) to finish another task, then return to Python to
> continue. It's like executing a system command from Python, I guess.


In the os module, you'll find system, and the popen and spawn families.
One of these should do it for you.

--

Emile van Sebille
emile at fenx.com

--------->




More information about the Python-list mailing list