Message1263
The script text.py runs correctly and prints out
__file__ variable when it is 'import'ed.
If one tries to run it, it reports NameError:
ss@mira:~/download/trunk/sandbox/jt$ ~/jython/jython
text.py
Traceback (innermost last):
File "text.py", line 2, in ?
NameError: __file__
and
ss@mira:~/download/trunk/sandbox/jt$ ~/jython/jython
Jython 2.2a1 on java1.4.2 (JIT: jitc)
Type "copyright", "credits" or "license" for more
information.
>>> import text
/home/ss/download/trunk/sandbox/jt/text.py
>>>
supreet.sethi@gmail.com |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:34 | admin | link | issue1577171 messages |
2008-02-20 17:17:34 | admin | create | |
|