Hello,

I'm trying to compile something for a friend.  The architecture of the program is a .py file that uses .py files in three other directories (not packages, like in site-packages): "retrogamelib/", "lib/", and "data/".  I would like to see a fully recursive version of this, but for now, here's what I've got:

#Parameters
file = "run_game.py"
optimization = 2
compress = True
bundle = True
name = "BubbMan2-DX"
version = "1.0"
description = ""
author = "PyMike"
directories = ["retrogamelib","lib","data"]
exclude = ["email","_ssl","pyreadline","difflib","doctest","locale","optparse","pickle","calendar"]
dll_exclude = ["oci.dll","msvcr71.dll"]
icon = None

#Code
from distutils.core import setup
import py2exe
import sys, os

data_files = []
for directory in directories:
    list_of_files = os.listdir(directory)
    files = (directory,list_of_files)
    data_files.append(files)
print data_files

console_windows = 1
options={"py2exe":{"unbuffered":True,
                   "optimize":optimization,
                   "excludes":exclude,
                   "dll_excludes":dll_exclude,
                   "compressed":compress,
                   "bundle_files":bundle,
                   "packages":directories
                   }
        }
console_window_data = {"script":file}
if icon != None:
    console_window_data.update(  {"icon_resources":[(1,icon)]}  )
if console_windows == 1:
    setup(console=[console_window_data],options=options,name=name,version=version,\
          description=description,author=author,zipfile=None,data_files=data_files)
else:
    setup(windows=[console_window_data],options=options,name=name,version=version,\
          description=description,author=author,zipfile=None,data_files=data_files)


Unfortunately, it does not seem to work.  It can't find the first required file in one of the subdirectories (I checked; it's there).  Help?

Thanks,
Ian