]> code.delx.au - pymsnt/blob - PyMSNt.tac
Hurrah for unit testing
[pymsnt] / PyMSNt.tac
1 # Path to the PyMSNt installed directory
2 PATH = "/usr/local/PyMSNt/"
3
4 # Path to the configuration file
5 CONFIG = "/usr/local/PyMSNt/config.xml"
6
7 ####
8 # You shouldn't need to modify below this line
9 ####
10
11
12 # Make 'cwd'/src in the PYTHONPATH
13 import sys
14 import os
15 import os.path
16 sys.path[0] = os.path.abspath(PATH + "/src/")
17 os.chdir(PATH)
18
19 # Set up the service
20 import config
21 config.configFile = CONFIG
22 import main
23 from twisted.application import service
24 application = service.Application("PyMSNt")
25 service = main.App()
26 service.c.setServiceParent(application)
27