Index: py2exe/boot_service.py =================================================================== RCS file: /cvsroot/py2exe/py2exe/py2exe/boot_service.py,v retrieving revision 1.3 diff -u -r1.3 boot_service.py --- py2exe/boot_service.py 8 Jun 2004 20:26:20 -0000 1.3 +++ py2exe/boot_service.py 2 Nov 2004 12:57:38 -0000 @@ -10,6 +10,14 @@ try: for name in service_module_names: mod = __import__(name) + + # __import__('aa,bb,cc') returns aa not (as you might expect and we + # would like) cc. So we follow the example given in the python docs for + # __import__ for getting cc from aa. + components = name.split('.') + for comp in components[1:]: + mod = getattr(mod, comp) + for ob in mod.__dict__.values(): if hasattr(ob, "_svc_name_"): service_klasses.append(ob)