if your goal is to search for files on a windows-style path environment variable, maybe you don't want to take this approach, but instead wrap and use the _wsearchenv or _searchenv C library functions http://msdn.microsoft.com/library/en-us/vclib/html/_crt__searchenv.2c_._wsearchenv.asp
Incidentally, I peeked at the implementation of _searchenv in wine (an implementation of the win32 API for Unix), and it doesn't do the quote-processing that you say Windows does. The msdn page doesn't give the syntax for the variable either, which is pretty typical. Do you have an "official" page that discusses the syntax? Jeff
pgpT4weDOp5pO.pgp
Description: PGP signature
-- http://mail.python.org/mailman/listinfo/python-list