is it possble to run a script from the python shell?

Darren Dale dd55 at cornell.edu
Mon May 3 23:28:42 EDT 2004


If so, how is it done? This is probably a stupid question. But when I 
os.chdir into a directory that I know contains a python file, when I try 
to call it

>>>color_demo.py

I get 

NameError: name color_demo is not defined

Thanks,
Darren



More information about the Python-list mailing list