SoFunction
Updated on 2024-11-15

Troubleshooting windows service written in python that won't start


#!/usr/bin/python 
#-*-coding:cp936-*-
from import setup
import py2exe

class Target:
    def __init__(self, **kw):
        self.__dict__.update(kw)
        # for the versioninfo resources
        = "1.1.8"
        self.company_name = "Yovole Shanghai Co. Ltd."
        = "Copyright (c) 2013 Founder Software (Shanghai) Co., Ltd. "
        = "Guest Agent"


myservice = Target(
    description = 'Yovole Cloud Desktop Guest Agent',
    modules = ['service'],
    cmdline_style='pywin32'
    #icon_resources=[(1, "")]
)

options = {"py2exe":  
            {   "compressed": 1,  
                "bundle_files": 1
            }  
          } 

setup(
    service=[myservice],
    options = options,
    zipfile = None,
    windows=[{"script": ""}],
)