From 6d3170ece41e201723a91e3194de36a2d8b27ba7 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 31 Aug 2014 13:18:09 +0530 Subject: [PATCH] Use os.path.join() for creating a static directory path --- plinth/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/__main__.py b/plinth/__main__.py index e62508f7f..4910ce8d0 100644 --- a/plinth/__main__.py +++ b/plinth/__main__.py @@ -92,7 +92,7 @@ def setup_server(): cherrypy.tree.graft(application, cfg.server_dir) config = { - '/': {'tools.staticdir.root': '%s/static' % cfg.file_root, + '/': {'tools.staticdir.root': os.path.join(cfg.file_root, 'static'), 'tools.staticdir.on': True, 'tools.staticdir.dir': '.'}} cherrypy.tree.mount(None, django.conf.settings.STATIC_URL, config)