[PyQt] bug: QProcessEnvironment insert failing

Scott Ballard scott at scottballard.net
Fri Dec 10 04:59:27 GMT 2010


I ran across the following bug tonight:

The insert method of QProcessEnvironment overwrites the environment variable
instead of inserting into it.

=== Example ===
from PyQt4 import QtCore

env = QtCore.QProcessEnvironment.systemEnvironment()
print env.value('PATH')
>>C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;

env.insert('PATH', 'some_path')
print env.value('PATH')
>>some_path

Cheers,
-Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101209/c77627dc/attachment.html>


More information about the PyQt mailing list