mirror of
https://github.com/FAUSheppy/ths-speech
synced 2025-12-06 07:51:34 +01:00
correct directory
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user