Message1031
I ran across this in trying to figure out why my
jyleo.py startup script was failing. What is happening
is that once a jython src file is compiled it has the
__file__ attribute permanently written into the
compiled file. This makes it impossible to derive
correctly the place where the file is being loaded
from. Once compiled, you can move a set of jython code
to another machine or a different directory and code
that needs correct __file__ attributes will
mysteriously fail--> that is until you find out that
the __file__ attribute is returning a path that only
exists on another machine.
The requested fix: make the __file__ attribute
correctly reflect its location on the filesystem.
The severity of this depends upon if your
application/script depends upon this information to
function properly. In my case it does, so from my
perspective it is a *bad* bug. For others it may not
even be a bug.
|
|
Date |
User |
Action |
Args |
2008-02-20 17:17:25 | admin | link | issue1284344 messages |
2008-02-20 17:17:25 | admin | create | |
|