Use proper OS-specific path uris in many more places

also move path.join into local_path and output_path to simplify use
This commit is contained in:
Fabian Dill
2020-08-25 13:22:47 +02:00
parent 08f8677433
commit 2096d6ae5b
7 changed files with 33 additions and 30 deletions

View File

@@ -143,7 +143,7 @@ class RequestHandler(http.server.SimpleHTTPRequestHandler):
Handler = partial(RequestHandler,
directory=Utils.local_path(os.path.join("data", "web", "public")))
directory=Utils.local_path("data", "web", "public"))
def start_server(socket_port: int, on_start=lambda: None):