Can't execute an external program !

Thomas Heller thomas.heller at ion-tof.com
Wed Jun 14 16:05:06 EDT 2000


[Mark writes]
> 
> It appears the only real Unixism (apart from hard-coding "ls -l" etc)
> is the use of os.popen().
> 
> It appears very unlikely that os.popen() will be made portable in the
> 1.6 timeframe.
> 
> An option that _could_ make it would be to hack os.py, and attempt to
> use win32pipe.popen for os.popen.  There is a precedent -
> os.path.abspath() attempts to use win32api.GetFullPathName() if
> available.
I have some mixed feelings with these hidden dependencies in the core
distribution of optional extension modules.

What would happen if win32api is not installed? Fail silently?
Print a warning? Require the installation of win32all?

Thomas





More information about the Python-list mailing list