[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')

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

-------------- 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