Microsoft Vista and os.exec

franko353 frank.wilder at
Tue Aug 21 21:43:05 CEST 2007

I have wxPython programs that work fine in Win2000/XP using os.exec().

They do not work in MS Vista. Has anyone else had any luck with

I keep getting an 'invalid option' error.

It turn out it was really a security issue and I had to move to a
"win32process.CreateProcess" solution to fix this under Vista.

There is a good example of using CreateProcess in the "Python
programming on Win32" book.

More information about the Python-list mailing list