include "apythonscript.py"

Chris Curvey ccurvey at gmail.com
Mon May 9 11:08:54 EDT 2005


the PHP include doesn't have an exact match in Python, but I think you
can do what you intend.

To follow the first example from php.net, this would work

vars.py
color = 'green'
fruit = 'apple'

test.py
from vars import *
print "A " , color, fruit 

HTH




More information about the Python-list mailing list