I'm trying to tell OBConversion to use std::cin as the input source.
I'm using Python.
That doesn't seem possible.
Read() takes a std::istream*, but Python has no way to create that
and there's no special magic value like "openbabel.cin" which I
can use to force it.
Instead, I end up doing a circumlocution to tell OB to read
from the file "/dev/stdin", which should work on the machines
I'm interested in, but does not work on Windows.
BTW, a related question.
Is there any way to get the OB version information from Python?
BABEL_VERSION is a compile-time string, and I don't see any code
which makes that visible via SWIG.
Best regards,
Andrew
[email protected]
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
OpenBabel-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss