mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Began implementing on-demand websocket server
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user