浏览代码

Add task for splitting the templates

oz123 10 年之前
父节点
当前提交
28f58dbed3
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      scripts/webui.py

+ 6 - 0
scripts/webui.py

@@ -23,6 +23,12 @@ from pwman.util.crypto import CryptoEngine
 import pwman.data.factory
 from pwman.data.tags import TagNew
 from pwman import parser_options, get_conf_options
+from pkg_resources import Requirement, resource_filename
+
+
+# TODO: split template info and put it in data file:
+# access them with
+filename = resource_filename("pwman","htmlfiles/index.html")
 
 AUTHENTICATED = False
 TAGS = None