From: Loïc d'A. <loi...@gm...> - 2015-03-06 09:59:19
|
My bad, it works great. Thanks ! 2015-03-05 22:12 GMT+01:00 Mark Hammond <.hammond@.com <ski...@gm...>>: > On 6/03/2015 4:00 AM, Loy wrote: > >> Thanks for you answer, but as I know, win32serviceutil is not >> implemented||yet for|python3.4 (and you can suppose that I can't use >> python 2.7 ...) >> > > win32serviceutil works fine on 3.4: > > Python 3.4.0+ (default, May 3 2014, 16:51:54) [MSC v.1600 64 bit (AMD64)] > on win32 > Type "help", "copyright", "credits" or "license" for more information. > >> import win32serviceutil >>>> dir(win32serviceutil) >>>> >>> ['ChangeServiceConfig', 'ControlService', 'DebugService', > 'GetServiceClassString', 'GetServiceCustom > Option', 'HandleCommandLine', 'InstallPerfmonForService', > 'InstallPythonClassString', 'InstallServic > e', 'LocatePythonServiceExe', 'LocateSpecificServiceExe', > 'QueryServiceStatus', 'RemoveService', 'Re > startService', 'ServiceFramework', 'SetServiceCustomOption', > 'SmartOpenService', 'StartService', 'St > opService', 'StopServiceWithDeps', 'WaitForServiceStatus', > '_DebugCtrlHandler', '_GetCommandLine', ' > _GetServiceShortName', '__FindSvcDeps', '__ResolveDeps', > '__StopServiceWithTimeout', '__builtins__', > '__cached__', '__doc__', '__file__', '__loader__', '__name__', > '__package__', '__spec__', 'error', > 'os', 'pywintypes', 'sys', 'usage', 'warnings', 'win32api', 'win32con', > 'win32service', 'winerror'] > >> >>>> > Mark > > >> | >> |So, can I use py2exe without this module and generate >> service-compatible executable file ? >> | >> >> 2015-03-05 17:01 GMT+01:00 Daniel Casper <dan...@. >> <mailto:dan...@gm...>>: >> >> >> Loy, >> >> There's a post over here on StackOverflow about creating a win32 >> Service with python - >> http://stackoverflow.com/questions/263296/creating-a- >> python-win32-service. >> That should get you close. I've also included a sample template I >> use for my setup.py for creating a Service. Let me know if it helps >> or you have questions. >> >> --Dan >> >> On Thu, Mar 5, 2015 at 7:46 AM, Loywrote: >> >> Hello, >> >> Is there any way to create a windows service using python 3.4 >> with py2exe ? >> >> Thanks, >> Loy. >> >> ------------------------------------------------------------ >> ------------------ >> Dive into the World of Parallel Programming The Go Parallel >> Website, sponsored >> by Intel and developed in partnership with Slashdot Media, is >> your hub for all >> things parallel software development, from weekly thought >> leadership blogs to >> news, videos, case studies, tutorials and more. Take a look and >> join the >> conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Py2exe-users mailing list >> Py2...@li... >> <mailto:Py2...@li...> >> https://lists.sourceforge.net/lists/listinfo/py2exe-users >> >> >> >> >> >> ------------------------------------------------------------ >> ------------------ >> Dive into the World of Parallel Programming The Go Parallel Website, >> sponsored >> by Intel and developed in partnership with Slashdot Media, is your hub >> for all >> things parallel software development, from weekly thought leadership >> blogs to >> news, videos, case studies, tutorials and more. Take a look and join the >> conversation now. http://goparallel.sourceforge.net/ >> >> >> >> _______________________________________________ >> Py2exe-users mailing list >> Py2...@li... >> https://lists.sourceforge.net/lists/listinfo/py2exe-users >> >> > |