title: How can I include ui and image files while using py2exe?
body: <p>I am working on a project using Python 2.7 and PySide 1.1.2. My code is working without any problem on my GNU/Linux but I want to distribute for Windows ( 7 and 8 ) as well. I can't expect users to install Python and PySide, so I decided to use py2exe (I also tried cx_freeze and pyinstaller).</p>
  
  <p>First of all, here is my file tree: <a href="https://github.com/th0th/metusuite/tree/experimental" rel="noreferrer">My Project on GitHub</a></p>
  
  <p>I created a setup.py, here it is:</p>
  
  <pre><code># -*- coding: utf-8 -*-
  
  from distutils.core import setup
  import py2exe
  
  setup(
      console=['bin/metusuite.py'],
      name='metusuite',
      version='0.1',
      author='H. Gökhan Sarı',
      author_email='me@th0th.me',
      packages=['metusuite_libs'],
      package_dir={'metusuite_libs': 'metusuite_libs'},
      package_data={'metusuite_libs': ['ui/*', 'images/*']},
      scripts=['bin/metusuite.py'],
      url='https://github.com/th0th/metusuite/',
      license='LICENSE.txt',
      description='METU Suite.',
      long_description=open('README.md').read(),
  )
  </code></pre>
  
  <p>When I run</p>
  
  <pre><code>setup.py py2exe
  </code></pre>
  
  <p>it successfully builds metusuite.exe in 'dist' folder, however, since application depends on external user interface files -created with Qt Designer- and it can't find them, I get an error:</p>
  
  <pre><code>Designer: An error has occurred while reading the UI file at line 1, column 0: Premature end of document.
  Traceback (most recent call last):
    File "metusuite.py", line 38, in &lt;module&gt;
    File "metusuite_libs\msCafeteriaMenu.pyc", line 37, in __init__
    File "metusuite_libs\msCafeteriaMenu.pyc", line 17, in __init__
  RuntimeError: Unable to open/read ui device
  </code></pre>
  
  <p>And I couldn't figure out how am I supposed to add *.ui files (also there are some .png icons) into that structure. I was thinking of converting .ui files to Python code, then I would have encounter same issue when I need to add some icons.</p>
  
  <p>Hence, how can I add my ui and png files in py2exe structure? Or is there any alternative method for what I am trying to accomplish?</p>