Issue1577171
Created on 2006-10-14.13:35:45 by anonymous, last changed 2006-10-15.00:06:41 by pekka.klarck.
File name |
Uploaded |
Description |
Edit |
Remove |
text.py
|
nobody,
2006-10-14.13:35:46
|
|
|
|
msg1263 (view) |
Author: Nobody/Anonymous (nobody) |
Date: 2006-10-14.13:35:45 |
|
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
|
msg1264 (view) |
Author: Nobody/Anonymous (nobody) |
Date: 2006-10-14.13:58:45 |
|
Logged In: NO
oh and IBM Java2 1.4.2 is the jre being used
Supreet
http://supreetsethi.net
|
msg1265 (view) |
Author: Pekka Klärck (pekka.klarck) |
Date: 2006-10-15.00:06:41 |
|
Logged In: YES
user_id=1379331
This issue has already been reported and it ought to be
fixed too. See can see bug #1548501 for some more
information and get a semi-official snapshot which should
contain the fix from
http://homepage.sunrise.ch/mysunrise/ohumbel/
|
|
Date |
User |
Action |
Args |
2006-10-14 13:35:45 | anonymous | create | |
|