Skip to content

Commit

Permalink
Add CGI wrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarrekNozka committed Mar 6, 2014
1 parent 0806e7f commit e164504
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions app.cgi
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/home/marek/bottleVirtualenv/bin/python
# Change working directory so relative paths (and template lookup) work again
import os, sys
os.chdir(os.path.dirname(__file__))
sys.path.insert(0, '.')

import webpwgen
webpwgen.run(server='cgi')
2 changes: 1 addition & 1 deletion webpwgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
############################################################################


from bottle import route, request, redirect, response, \
from bottle import run, route, request, redirect, response, \
template, view, error, \
static_file, default_app, BaseTemplate
import subprocess
Expand Down

0 comments on commit e164504

Please sign in to comment.