File: PyAIMt.py

package info (click to toggle)
pyaimt 0.8.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 980 kB
  • ctags: 1,526
  • sloc: python: 10,230; sh: 181; makefile: 56; xml: 14
file content (18 lines) | stat: -rwxr-xr-x 373 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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:
	try:
		main.main()
	except:
		import traceback
		traceback.print_trace()