From: <th...@us...> - 2014-10-16 17:38:26
|
Revision: 759 http://sourceforge.net/p/py2exe/svn/759 Author: theller Date: 2014-10-16 17:38:22 +0000 (Thu, 16 Oct 2014) Log Message: ----------- Fix bug in the error handling of py2exe.boot_service. Modified Paths: -------------- trunk/py2exe-3/ChangeLog trunk/py2exe-3/py2exe/boot_service.py Modified: trunk/py2exe-3/ChangeLog =================================================================== --- trunk/py2exe-3/ChangeLog 2014-10-15 17:41:56 UTC (rev 758) +++ trunk/py2exe-3/ChangeLog 2014-10-16 17:38:22 UTC (rev 759) @@ -1,3 +1,8 @@ +2014-10-16 <th...@ct...> + + * py2exe/boot_service.py: Fix bug in error handling code. + cmdline_style = "pywin32" should now work for services. + 2014-09-24 <th...@ct...> * py2exe/dllfinder.py: Add Scanner.add_bootcode(code) method. The Modified: trunk/py2exe-3/py2exe/boot_service.py =================================================================== --- trunk/py2exe-3/py2exe/boot_service.py 2014-10-15 17:41:56 UTC (rev 758) +++ trunk/py2exe-3/py2exe/boot_service.py 2014-10-16 17:38:22 UTC (rev 759) @@ -179,7 +179,7 @@ try: servicemanager.StartServiceCtrlDispatcher() except win32service.error as details: - if details[0] == winerror.ERROR_FAILED_SERVICE_CONTROLLER_CONNECT: + if details.winerror == winerror.ERROR_FAILED_SERVICE_CONTROLLER_CONNECT: win32serviceutil.usage() else: win32serviceutil.HandleCommandLine(k) @@ -192,7 +192,7 @@ try: servicemanager.StartServiceCtrlDispatcher() except win32service.error as details: - if details[0] == winerror.ERROR_FAILED_SERVICE_CONTROLLER_CONNECT: + if details.winerror == winerror.ERROR_FAILED_SERVICE_CONTROLLER_CONNECT: win32serviceutil.usage() else: # assume/insist that the module provides a HandleCommandLine function. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |