mirror of
https://github.com/koniu/recoll-webui.git
synced 2025-10-06 03:50:09 +02:00
py: fix setting of cwd again
This commit is contained in:
parent
8e9177a465
commit
7da8ea858b
3 changed files with 11 additions and 12 deletions
|
@ -1,8 +1,10 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import bottle
|
import os
|
||||||
|
# change to webui's directory and import
|
||||||
|
os.chdir(os.path.dirname(__file__))
|
||||||
import webui
|
import webui
|
||||||
|
# set up webui and run in own http server
|
||||||
bottle.debug(True)
|
webui.bottle.debug(True)
|
||||||
bottle.run(host='localhost', port=8080, reloader=True)
|
webui.bottle.run(host='localhost', port=8080, reloader=False)
|
||||||
|
|
||||||
# vim: foldmethod=marker:filetype=python:textwidth=80:ts=4:et
|
# vim: foldmethod=marker:filetype=python:textwidth=80:ts=4:et
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
#!env python
|
#!/usr/bin/env python
|
||||||
import os
|
import os
|
||||||
import bottle
|
# change to webui's directory and set up
|
||||||
import webui
|
|
||||||
|
|
||||||
os.chdir(os.path.dirname(__file__))
|
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
|
# vim: foldmethod=marker:filetype=python:textwidth=80:ts=4:et
|
||||||
|
|
4
webui.py
4
webui.py
|
@ -1,4 +1,4 @@
|
||||||
#!env python
|
#!/usr/bin/env python
|
||||||
#{{{ imports
|
#{{{ imports
|
||||||
import os
|
import os
|
||||||
import bottle
|
import bottle
|
||||||
|
@ -24,8 +24,6 @@ import string
|
||||||
import shlex
|
import shlex
|
||||||
import urllib
|
import urllib
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# change to recoll-webui directory to access templates
|
|
||||||
os.chdir(os.path.dirname(__file__))
|
|
||||||
#}}}
|
#}}}
|
||||||
#{{{ settings
|
#{{{ settings
|
||||||
# recoll settings
|
# recoll settings
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue