From df2b0c0e9478cb603ac08d66feaed6f544525c88 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Sat, 13 Oct 2018 18:03:25 +0200 Subject: [PATCH] correct directory --- python-server/filesystem.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python-server/filesystem.py b/python-server/filesystem.py index e5106bc..8d51533 100644 --- a/python-server/filesystem.py +++ b/python-server/filesystem.py @@ -1,9 +1,10 @@ import base64 import os.path import audiosegment_wrapper as AudioSegment +from configparse_wrapper.cpwrap import CFG audiofiles = [] -FTP_DIR = "/home/ths/" +FTP_DIR = CFG("shareDir") def save_audio(filename, base64_string): global audiofiles @@ -83,7 +84,7 @@ def copy_to_output(filename): return "" def write_file(filename, data): - FTP_DIR = "/home/ths/" + global FTP_DIR with open(FTP_DIR + filename,"wb") as f: f.write(data) with open(filename,"wb") as f: