Hi,

I've written a script which uses SHBrowseFolder from win32com.shell packages. This is imported using:

from win32com.shell import shell, shellcon

However, the actual shell package is installed in a subdirectory win32comext.shell.

This seems to give trouble to py2exe: it cannot find this module from the executable.

I haven't yet figured out how to solve this. I've tried adding the modules involved as includes, but this doesn't help.

My setup.py is:


from distutils.core import setup
import py2exe
import sys

# If run without args, build executables, in quiet mode.
if len(sys.argv) == 1:
    sys.argv.append("py2exe")
    #sys.argv.append("--bundle")
    #sys.argv.append("1")

setup(
      version="0.1",
      name='PolisStandenInExcel',
      description='PolisStandenInExcel. Haal informatie uit database-uitvoer voor polis-standen, en verzamel dit in een Excel sheet.',
      py_modules=['ui_util', 'DBOutputParser'],
      url='?',
      author='Tim N. van der Leeuw',
      author_email='XXXX',
#      console=['main.py'],
      console=[{'script': 'Controller.py',
                'dest_base': 'PolisStandenInExcel'
                }],
      zipfile=None,
      data_files = [('.', ['Results_Template.xls',])],
      options = {'py2exe': {
                  'includes': ['win32com', 'win32com.client', 'win32comext.shell.shell'],
              }
          },
      )



Help will be appreciated!

Regards,

--Tim