Yes, I forgot the windows part... Then the derivative would be to regex in
python the output of "subprocess.check_output(['obabel', '-:c1ccccc1',
'-onul'], stderr=subprocess.STDOUT)". This should work cross platform.

----
Pozdrawiam,  |  Best regards,
Maciek Wójcikowski
mac...@wojcikowski.pl

2016-07-07 16:07 GMT+02:00 Geoffrey Hutchison <geoff.hutchi...@gmail.com>:

> > We can check "obabel -:c1ccccc1 -omol2 >/dev/null" == "1 molecule
> converted", or to be more specific the following should be empty:
> > obabel -:c1ccccc1 -omol2 2>&1 >/dev/null | grep "Cannot open *.txt
> defaulting to compiled data."
>
>
> This test seems like it would only work on Linux/UNIX systems, but not
> Windows. Considering your problem is with Windows, I'd like to see a
> different option..
>
> -Geoff
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to