Skip to content

Instantly share code, notes, and snippets.

@Kronos11
Created March 10, 2012 03:41
Show Gist options
  • Select an option

  • Save Kronos11/2009970 to your computer and use it in GitHub Desktop.

Select an option

Save Kronos11/2009970 to your computer and use it in GitHub Desktop.
Test Python Service
#this represents a simple Python Test Service
print('test service')
from py_swganh import BaseService
class TestService(BaseService):
def __init__(self, kernel_):
print('test service initialized')
BaseService.start()
def onStart(self):
print('on start do stuff')
def onStop(self):
print('on stop do stuff')
t = TestService(kernel)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment