> Is there are a way to tell Python to output this in Binary mode? Yes, I think I can do that. Creating another handle on stdout with
newhandle = os.fdopen(sys.stdout.fileno(), "wb")
should do the trick, even on Windows.
If you want to try it, change line 494 in parser/python/PyPlucker/Writer.py
from
self._pdb_file = prc.File (sys.stdout, read=0, write=1)
to
self._pdb_file = prc.File (os.fdopen(sys.stdout.fileno(), 'wb'), read=0,
write=1)
Seems to work for me.
Bill
