<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thanks for the info Giovanni!<br>
    <br>
    <div class="moz-cite-prefix">On 05. 03. 14 16:25, G. Allegri wrote:<br>
    </div>
    <blockquote
cite="mid:CAB4g1=wC9OwTz70oLbBsP_jogMcKLz5oojW2prWhBa0Up43XKw@mail.gmail.com"
      type="cite">
      <div dir="ltr">This is a limit of the pyuic4 compiler. When it
        parses resources it doesn't consider relative paths.
        <div>I generally keep a "proxy" module inside the ui folder,
          named as the ui compiled module wants (e.g. resources_rc). In
          this module a do all my imports from other packages/modules.</div>
        <div><br>
        </div>
        <div>giovanni</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">2014-03-05 16:01 GMT+01:00 Denis
          Rouzaud <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:denis.rouzaud@gmail.com" target="_blank">denis.rouzaud@gmail.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div 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>
            </div>
            <br>
            _______________________________________________<br>
            Qgis-developer mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.osgeo.org/mailman/listinfo/qgis-developer"
              target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div dir="ltr">Giovanni Allegri<br>
          <a moz-do-not-send="true"
            href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a>
          <div>Twitter: <a moz-do-not-send="true"
              href="https://twitter.com/_giohappy_" target="_blank">https://twitter.com/_giohappy_</a></div>
          <div>blog: <a moz-do-not-send="true"
              href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>
            GEO+ geomatica in Italia <a moz-do-not-send="true"
              href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a></div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>