Handling global variables (Newbie)
google at mrabarnett.plus.com
Fri Mar 14 20:19:18 CET 2008
On Mar 13, 4:25 am, "David S" <dav... at evertech.com.au> wrote:
> I have an error occurring at
> self.build_root = os.path.abspath(os.path.split(__file__))
> The error states 'NameError: global name '__file__' is not defined'
> In Python 2.5 I ran my script as a module in IDLE gui. How does _file_ get
Do you perhaps mean '__name__'?
More information about the Python-list