File: PyMSNt.py

package info (click to toggle)
pymsnt 0.11.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 792 kB
  • ctags: 1,937
  • sloc: python: 9,410; sh: 90; xml: 17; makefile: 7
file content (15 lines) | stat: -rwxr-xr-x 379 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python
# Copyright 2006 James Bunton <james@delx.cjb.net> 
# Licensed for distribution under the GPL version 2, check COPYING for details

# Make 'cwd'/src in the PYTHONPATH
import sys, os, os.path
PATH = os.path.abspath(os.path.dirname(sys.argv[0]))
os.chdir(PATH)
PATH = os.path.join(PATH, "src")
sys.path[0] = PATH

# Start the service
import main
main.main()