]> code.delx.au - pymsnt/blob - PyMSNt.tac
Reimport and tags (0.10.1)
[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 main
21 from twisted.application import service
22 application = service.Application("PyMSNt")
23 service = main.App()
24 service.c.setServiceParent(application)
25