[PyQt] Small bug in PyQt's configure.py

Giovanni Bajo rasky at develer.com
Fri Jul 24 15:09:08 BST 2009


Hi Phil,

this code:

             inc_path = [sipcfg.py_inc_dir]
             if qpy == "QtCore":
                 if sipcfg.sip_inc_dir != sipcfg.py_inc_dir:
                     inc_path.append(sipcfg.sip_inc_dir)

has a little problem: whenever sip_inc_dir != py_inc_dir, you want to 
give to the *former* priority in the include order; the latter is 
usually the system include dir where a different sip.h might be installer.

You want to change .append() to .insert(0,...).

Thanks!
-- 
Giovanni Bajo
Develer S.r.l.
http://www.develer.com


More information about the PyQt mailing list