Bläddra i källkod

Add task for splitting the templates

oz123 10 år sedan
förälder
incheckning
28f58dbed3
1 ändrade filer med 6 tillägg och 0 borttagningar
  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