On Mar 13, 4:25 am, "David S" <[EMAIL PROTECTED]> wrote: > Hi, > > I have an error occurring at > self.build_root = os.path.abspath(os.path.split(__file__)[0]) > > 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 > defined? > Do you perhaps mean '__name__'? -- http://mail.python.org/mailman/listinfo/python-list
- Handling global variables (Newbie) David S
- Re: Handling global variables (Newbie) MRAB
- Re: Handling global variables (Newbie) Marc 'BlackJack' Rintsch
- Re: Handling global variables (Newbie) Gabriel Genellina