Fail to import icons_rc with Python 3.3



  • I have a simple app I am working on. Everything worked fine under Python 2.7, but when I switched to Python 3.3, suddenly importing icons_rc fails. I have icons_rc.py in a subfolder and the subfolder contains an init.py file. If I move icons_rc.py into the main folder, it imports correctly.



  • you'd better not move it.Each time when you run your program ,the current folder is always the one that the start file lives in.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.