From: Thomas H. <th...@us...> - 2005-04-28 08:09:26
|
Update of /cvsroot/py2exe/py2exe/py2exe In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20024 Modified Files: boot_service.py Log Message: Patch from Cory Dodt to allow building a service from a module inside a package. Index: boot_service.py =================================================================== RCS file: /cvsroot/py2exe/py2exe/py2exe/boot_service.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** boot_service.py 8 Jun 2004 20:26:20 -0000 1.3 --- boot_service.py 28 Apr 2005 08:09:17 -0000 1.4 *************** *** 10,14 **** try: for name in service_module_names: ! mod = __import__(name) for ob in mod.__dict__.values(): if hasattr(ob, "_svc_name_"): --- 10,18 ---- try: for name in service_module_names: ! # Use the documented fact that when a fromlist is present, ! # __import__ returns the innermost module in 'name'. ! # This makes it possible to have a dotted name work the ! # way you'd expect. ! mod = __import__(name, globals(), locals(), ['DUMMY']) for ob in mod.__dict__.values(): if hasattr(ob, "_svc_name_"): |