Began implementing on-demand websocket server

This commit is contained in:
th3r00t
2020-08-28 22:22:16 -04:00
parent f2729e05db
commit 938ef39821
4 changed files with 87 additions and 32 deletions

View File

@@ -1,5 +1,6 @@
import json
import pathlib
import re
from loguru import logger
@@ -14,10 +15,10 @@ class Config:
"""
Initialize main configuration options
"""
self.root = root
self._fp = "config.json"
self._cp = pathlib.Path.joinpath(root, self._fp)
self._data = self.open_file()
self.root = root
self.logger = self.get_logger()
self.book_path = self._data["BOOKPATH"]
self.TITLE = self._data["TITLE"]
@@ -53,5 +54,10 @@ class Config:
data = json.load(read_file)
return data
def path(self):
rstr = "pyShelf/src"
r = re.template(rstr)
_pathre = re.match("pyShelf/src")
def django_secret(self):
pass