running programs from within python

Steven Bethard steven.bethard at gmail.com
Wed Mar 9 12:26:08 EST 2005


M.N.A.Smadi wrote:
> am getting an error in the script as follows:
> 
> NameError: global name 'os' is not defined
> 
> however i dont get the same error when running from the python CLI. (and 
> yes i am importing the os module)

Can you give the full exception message (i.e. copy-paste it from the 
output)?

STeVe



More information about the Python-list mailing list