Skip to content

Commit

Permalink
py: fix setting of cwd again
Browse files Browse the repository at this point in the history
  • Loading branch information
koniu committed Oct 8, 2013
1 parent 8e9177a commit 7da8ea8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
10 changes: 6 additions & 4 deletions webui-standalone.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/usr/bin/env python
import bottle
import os
# change to webui's directory and import
os.chdir(os.path.dirname(__file__))
import webui

bottle.debug(True)
bottle.run(host='localhost', port=8080, reloader=True)
# set up webui and run in own http server
webui.bottle.debug(True)
webui.bottle.run(host='localhost', port=8080, reloader=False)

# vim: foldmethod=marker:filetype=python:textwidth=80:ts=4:et
9 changes: 4 additions & 5 deletions webui-wsgi.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!env python
#!/usr/bin/env python
import os
import bottle
import webui

# change to webui's directory and set up
os.chdir(os.path.dirname(__file__))
application = bottle.default_app()
import webui
application = webui.bottle.default_app()
# vim: foldmethod=marker:filetype=python:textwidth=80:ts=4:et
4 changes: 1 addition & 3 deletions webui.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!env python
#!/usr/bin/env python
#{{{ imports
import os
import bottle
Expand All @@ -24,8 +24,6 @@
import shlex
import urllib
from pprint import pprint
# change to recoll-webui directory to access templates
os.chdir(os.path.dirname(__file__))
#}}}
#{{{ settings
# recoll settings
Expand Down

0 comments on commit 7da8ea8

Please sign in to comment.