ANN: PyLogo 0.1

Erik Max Francis max at alcyone.com
Wed Nov 19 17:50:19 EST 2003


Ian Bicking wrote:

>   I'm not quite sure why this is happening (though I admit it has
> happened to be before in other situations, it's not happening to me
> now).  I'm not sure why __file__ exists sometimes, and not other
> times.

It's a 2.3 thing:

max at oxygen:~% python2.3 /usr/local/bin/pylogo
Importing pylogo.builtins
Importing logo_turtle
??? bye
max at oxygen:~% python2.2 /usr/local/bin/pylogo 
Traceback (most recent call last):
  File "/usr/local/bin/pylogo", line 5, in ?
    if os.path.basename(os.path.dirname(__file__)) == 'scripts':
NameError: name '__file__' is not defined

-- 
   Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
 __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/  \ 
\__/ It [freedom] must be demanded by the oppressed.
    -- Dr. Martin Luther King, Jr.




More information about the Python-list mailing list