]> code.delx.au - pymsnt/blob - PyMSNt.tac
Should fix problems with dying switchboard sessions because of raw mode.
[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 # User privileges to switch to if run as root
8 UID=1
9 GID=1
10
11 ####
12 # You shouldn't need to modify below this line
13 ####
14
15
16 # Make 'cwd'/src in the PYTHONPATH
17 import sys
18 import os
19 import os.path
20 sys.path[0] = os.path.abspath(PATH + "/src/")
21 os.chdir(PATH)
22
23 # Set up the service
24 import config
25 config.configFile = CONFIG
26 import main
27 from twisted.application import service
28 application = service.Application("PyMSNt", uid=UID, gid=GID)
29 service = main.App()
30 service.c.setServiceParent(application)
31