<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
I have been annoyed by a small problem for a while without finding a
solution for it.<br>
<br>
In my plugins, I place all the ui files in a subfolder named ui.<br>
The resources file is at the root folder.<br>
<br>
So, in the ui file I have<br>
<iconset resource="../resources.qrc"><br>
<br>
But when I compile, I got in the python file (also located in ui
folder):<br>
import resources_rc<br>
which gives an error, because it can't find the resource files.<br>
<br>
What would be the solution to this (something else than moving the
file)?<br>
<br>
My makefile is like this:<br>
<small>UI_SOURCES=$(wildcard ui/*.ui)<br>
UI_FILES=$(join $(dir $(UI_SOURCES)), $(notdir
$(UI_SOURCES:%.ui=%.py)))<br>
RC_SOURCES=$(wildcard *.qrc)<br>
RC_FILES=$(join $(dir $(RC_SOURCES)), $(notdir
$(RC_SOURCES:%.qrc=%_rc.py)))<br>
<br>
$(UI_FILES): ui/%.py: ui/%.ui<br>
pyuic4 -o $@ $<<br>
<br>
$(RC_FILES): %_rc.py: %.qrc<br>
pyrcc4 -o $@ $<</small><br>
<br>
Is it a problem of my rules or a pyuic problem?<br>
<br>
Thanks,<br>
<br>
Denis<br>
</body>
</html>