Using os.popen with other python scripts

Phil Hunt philh at vision25.demon.co.uk
Tue May 4 14:19:29 EDT 1999


In article <7gn7fo$fqs$1 at nnrp1.dejanews.com> skott1870 at my-dejanews.com  writes:
> Script 1:
> 
> print "this is a test"
> 
> Script 2:
> 
> import os
> x = os.popen('script1.py').readlines()
> print x

Have you tried:

   x = os.popen('python script1.py').readlines()

-- 
Phil Hunt....philh at vision25.demon.co.uk





More information about the Python-list mailing list