Re: calling another python file within python

2006-03-14 Thread Ben C
On 2006-03-14, Kevin <[EMAIL PROTECTED]> wrote: > i have a python file called pyq which outputs stock quotes, currently i > also have a html file that takes stock ticker inputs, i would like to > bridge the two by building another program that takes the html inputs > and uses them to call the py

Re: calling another python file within python

2006-03-14 Thread Rene Pijlman
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 a

calling another python file within python

2006-03-14 Thread Kevin
i have a python file called pyq which outputs stock quotes, currently i also have a html file that takes stock ticker inputs, i would like to bridge the two by building another program that takes the html inputs and uses them to call the pyq stock ticker program and then output them into a text