correct directory

This commit is contained in:
2018-10-13 18:03:25 +02:00
parent 4d04c27dda
commit df2b0c0e94

View File

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