is it possble to run a script from the python shell?
Cousin Stanley
CousinStanley at HotMail.Com
Tue May 4 12:05:53 EDT 2004
| ....
| >>> color_demo.py
|
| I get .... NameError: name color_demo is not defined
| ....
Darren ....
At the Python prompt after the os.chdir
you might also try ....
import color_demo
Or, directly from the command-line ....
python /someDir/color_demo.py
Or ....
cd /someDir
python color_demo.py
--
Cousin Stanley
Human Being
Phoenix, Arizona
More information about the Python-list
mailing list