Doesn't anybody write to paper anymore?

Hernan M. Foffani hernanf at my-deja.com
Sun Apr 16 14:24:38 EDT 2000


In article <38F94701.CA52FDBB at tcac.net>,
  Albert Wagner <alwagner at tcac.net> wrote:
>......Just one follow-up:  The
> docs say that os.popen() is "unreliable on Windows."  Is this still
true
> in 1.5?  And if so, is there an alternate implementation for
windows?  I
> run on Redhat6.1 Linux at home but need to port to windows98 for work.

Well, there is a reliable "os.popen()" for windows around there. But if
you want to print in windows from python, that will be useless. Unless
you've got a "lpr" for windows (?)
The quick way: output to a text file, then run "notepad /p filename".
The advanced way: use the win32 module from pyhton.

-H.

--
Hernán Martínez Foffani
hernanf at my-deja.com


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list