version number in python

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

version number in python

Tobias Schmidt
Hello,

I was wondering, is there a way to get the openbabel version number
within python? I know there is --version option in the command line,
however, I didn't find something similar in the python interface.
If not, would it be possible to add it to the python interface? That
would be very helpful to check if certain features are present or not if
a script is run on another machine.

Best regards
Tobias

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
OpenBabel-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
Reply | Threaded
Open this post in threaded view
|

Re: version number in python

Noel O'Boyle
Administrator
Hi Tobias,

That has been requested previously
(https://sourceforge.net/tracker/?func=detail&aid=2970291&group_id=40728&atid=428743)
and we will add in the near future I think.

- Noel

On 6 June 2010 21:25, Tobias Schmidt <[hidden email]> wrote:

> Hello,
>
> I was wondering, is there a way to get the openbabel version number
> within python? I know there is --version option in the command line,
> however, I didn't find something similar in the python interface.
> If not, would it be possible to add it to the python interface? That
> would be very helpful to check if certain features are present or not if
> a script is run on another machine.
>
> Best regards
> Tobias
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> OpenBabel-discuss mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
>

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
OpenBabel-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
Reply | Threaded
Open this post in threaded view
|

Re: version number in python

Geoffrey Hutchison
In reply to this post by Tobias Schmidt
> If not, would it be possible to add it to the python interface? That
> would be very helpful to check if certain features are present or not if
> a script is run on another machine.

Sorry for the delay. For the development version ("trunk") I added a function for this, which will be incorporated into the scripting interfaces. If you'd like a patch, I can definitely send you one.

Good suggestion!

Thanks very much,
-Geoff
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
OpenBabel-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss