File: fookebox.fcgi

package info (click to toggle)
fookebox 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 852 kB
  • sloc: python: 1,559; sh: 42; makefile: 14
file content (16 lines) | stat: -rwxr-xr-x 334 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/python
#
# requires the python flup module

BASE_PATH = '/usr/share/fookebox'
APP_CONFIG = '/etc/fookebox/config.ini'

import sys
if BASE_PATH not in sys.path:
	sys.path.append(BASE_PATH)

from paste.deploy import loadapp
app = loadapp('config:' + APP_CONFIG)

from flup.server.fcgi import WSGIServer
WSGIServer(app).run()