Trying to get python bridge to work.
This commit is contained in:
@@ -6,10 +6,10 @@ import sys
|
|||||||
### Variables -->
|
### Variables -->
|
||||||
SECRET_PATH = "/run/user/{}/numbus".format(os.getuid()) if os.path.exists("/run/user/{}".format(os.getuid())) else "../secrets"
|
SECRET_PATH = "/run/user/{}/numbus".format(os.getuid()) if os.path.exists("/run/user/{}".format(os.getuid())) else "../secrets"
|
||||||
os.makedirs(SECRET_PATH, exist_ok=True)
|
os.makedirs(SECRET_PATH, exist_ok=True)
|
||||||
LOGS_DIR = "../logs/"
|
LOGS_DIR = "../web/logs/"
|
||||||
PAGES_DIR = "../pages/"
|
PAGES_DIR = "../web/pages/"
|
||||||
CONFIG_DIR = "../config/"
|
CONFIG_DIR = "../web/config/"
|
||||||
SIGNALS_DIR = "../signal/"
|
SIGNALS_DIR = "../web/signal/"
|
||||||
### <-- Variables
|
### <-- Variables
|
||||||
|
|
||||||
class BridgeHandler(http.server.SimpleHTTPRequestHandler):
|
class BridgeHandler(http.server.SimpleHTTPRequestHandler):
|
||||||
|
|||||||
Reference in New Issue
Block a user