Re: [Pydev-code] querying pydev version in pydev scripting
Brought to you by:
fabioz
From: Fabio Z. <fa...@gm...> - 2006-04-19 15:15:11
|
> > Is there a way of determining the pydev version from within a pydev Jytho= n > script? Humm, I'm not sure about the 'correct' way to do this, but I guess you coul= d do that from the install dir... >>from org.python.pydev.plugin import PydevPlugin #@UnresolvedImport >>p =3D PydevPlugin.getDefault() >>print p.getBundle().getLocation() update@plugins/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=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |