Ver Fonte

Add task for splitting the templates

oz123 há 10 anos atrás
pai
commit
28f58dbed3
1 ficheiros alterados com 6 adições e 0 exclusões
  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