title: Customize pyuic's resource import statement?
body: <p>When I use this command on windows:</p>
  
  <pre><code>python -m PyQt4.uic.pyuic user_interface.ui -o user_interface.py
  </code></pre>
  
  <p>After that, I add a resource:</p>
  
  <pre><code>pyrcc4.exe -py3 images.qrc -o images.py
  </code></pre>
  
  <p>And I end up with two beautiful files, <strong>user_interface.py</strong>, and <strong>images.py</strong>. The problem is that the <strong>user_interface.py</strong> file ends with this line of code:</p>
  
  <pre><code>... all QT stuff here.
  import images_re
  </code></pre>
  
  <p>And because this is a module that is called from many parents, it has to be imported like this:</p>
  
  <pre><code>import myapp.gui.images_re
  </code></pre>
  
  <p>When I change the line of code it works perfectly, but every time I modify the user_interface.ui file and then execute the batch, it will be overwritten, and I will have to change it manually every time.</p>
  
  <p>Is there any way to tell pyuic what to write in that import statement?<br>Or any batch code that can be executed after the pyuic and changes that line of code?<br>Or some tweak on the .py file that calls <strong>user_interface.py</strong> for example to change the default directory so it imports images_re from there?</p>