Original Translation
1147
\\conky\foo is not a directory \\conky\foo\ is a directory \\conky\foo\media is a directory \\conky\foo\media\ is not a directory
1148
cgi.py (or other CGI programming) doesn't work sometimes on NT or win95!
1149
Be sure you have the latest python.exe, that you are using python.exe rather than a GUI version of Python and that you have configured the server to execute ::
1150
"...\python.exe -u ..."
1151
for the CGI execution. The :option:`-u` (unbuffered) option on NT and Win95 prevents the interpreter from altering newlines in the standard input and output. Without it post/multipart requests will seem to have the wrong length and binary (e.g. GIF) responses may get garbled (resulting in broken images, PDF files, and other binary downloads failing).
1152
Why doesn't os.popen() work in PythonWin on NT?
1153
The reason that os.popen() doesn't work from within PythonWin is due to a bug in Microsoft's C Runtime Library (CRT). The CRT assumes you have a Win32 console attached to the process.
1154
You should use the win32pipe module's popen() instead which doesn't depend on having an attached Win32 console.
1155
Example::
1156
import win32pipe f = win32pipe.popen('dir /c c:\\') print(f.readlines()) f.close()