summaryrefslogtreecommitdiff
path: root/plinth.py
diff options
context:
space:
mode:
authorJames Vasile <james@hackervisions.org>2011-12-16 23:42:18 -0500
committerJames Vasile <james@jamesvasile.com>2012-02-19 15:07:14 -0500
commitbc8887e8b645bb46ab50ac342acfd494a9236531 (patch)
treeba35b5be41d64d904b6d615849c2b5b7f20c1626 /plinth.py
parentce4b594f65cc448d5b7dc0df4de64a17ba70f651 (diff)
move port to cfg
Diffstat (limited to 'plinth.py')
-rwxr-xr-xplinth.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/plinth.py b/plinth.py
index 7a60adc..f630ccd 100755
--- a/plinth.py
+++ b/plinth.py
@@ -81,14 +81,14 @@ def write_cherrypy_config():
[global]
server.socket_host = '0.0.0.0'
-server.socket_port = 8000
+server.socket_port = %(port)s
server.thread_pool = 10
-tools.staticdir.root = "{fileroot}"
+tools.staticdir.root = "%(fileroot)s"
tools.sessions.on = True
tools.auth.on = True
tools.sessions.storage_type = "file"
tools.sessions.timeout = 90
-tools.sessions.storage_path = "{fileroot}/data/cherrypy_sessions"
+tools.sessions.storage_path = "%(fileroot)s/data/cherrypy_sessions"
[/static]
tools.staticdir.on = True
@@ -96,8 +96,8 @@ tools.staticdir.dir = "static"
[/favicon.ico]
tools.staticfile.on = True
-tools.staticfile.filename = "{fileroot}/static/theme/favicon.ico"
-""".format(fileroot=cfg.file_root))
+tools.staticfile.filename = "%(fileroot)s/static/theme/favicon.ico"
+""" % {'port':cfg.port, 'fileroot':cfg.file_root})
def parse_arguments():
parser = argparse.ArgumentParser(description='Plinht web interface for the FreedomBox.')