calling another python file within python
Rene Pijlman
reply.in.the.newsgroup at my.address.is.invalid
Tue Mar 14 11:39:25 EST 2006
Kevin:
>#!/usr/bin/python
>
>import os
>import urllib
>os.system("python pyq.py ibm > text1.txt")
Check the return value of os.system.
>note: currently the text1.txt outputted is just blank, however if i run
>the command normally as 'python pyq.py ibm' in the command line, it
>works correctly and gives me the price of ibm.
Same PATH, PYTHONPATH, current working directory, user,... ?
--
René Pijlman
More information about the Python-list
mailing list