Is there a way of determining the pydev version from within a pydev Jython script?
Humm, I'm not sure about the 'correct' way to do this, but I guess you could do that from the install dir...
>>from org.python.pydev.plugin import PydevPlugin [EMAIL PROTECTED]
>>p = PydevPlugin.getDefault()
>>print p.getBundle().getLocation()
[EMAIL PROTECTED]/org.python.pydev_1.0.5.1/
That could provide cleaner code for bug workarounds, I think.
For example, if you'd see something like this in a script:
if version < (1,0,6):
do_strange_and_possibly_conditional_stuff
you'd probably not get confused by the strange stuff since it quite obviously
is a workaround for problems in earlier versions.
Cheers!
/Joel
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
pydev-code mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-code
