make dataDir configurable

This commit is contained in:
2018-10-13 18:15:53 +02:00
parent 4676941dac
commit aaf88a35ef

View File

@@ -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 '''