File: PyICQt.py

package info (click to toggle)
pyicqt 0.8b-5
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,016 kB
  • ctags: 1,751
  • sloc: python: 11,539; sh: 177; makefile: 57; xml: 16
file content (16 lines) | stat: -rw-r--r-- 335 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python

# 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
if main.profilelog:
	import profile
	profile.run('main.main()', main.profilelog)
else:
	main.main()