From aaf88a35ef98d2d6704b96bb9797d7389b5baea8 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Sat, 13 Oct 2018 18:15:53 +0200 Subject: [PATCH] make dataDir configurable --- python-server/server_interface.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python-server/server_interface.py b/python-server/server_interface.py index a1b9d4f..f48090a 100644 --- a/python-server/server_interface.py +++ b/python-server/server_interface.py @@ -1,7 +1,9 @@ import speech import filesystem +from configparse_wrapper.cpwrap import CFG + +MAIN_DIR = bytes(CFG("mainDataDir"),CFG("encoding")) -MAIN_DIR = b"data/" def parse_request(data): ''' parse request and call correct function '''