mirror of
https://github.com/FAUSheppy/ths-speech
synced 2025-12-07 12:41:36 +01:00
correct directory
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
import base64
|
import base64
|
||||||
import os.path
|
import os.path
|
||||||
import audiosegment_wrapper as AudioSegment
|
import audiosegment_wrapper as AudioSegment
|
||||||
|
from configparse_wrapper.cpwrap import CFG
|
||||||
|
|
||||||
audiofiles = []
|
audiofiles = []
|
||||||
FTP_DIR = "/home/ths/"
|
FTP_DIR = CFG("shareDir")
|
||||||
|
|
||||||
def save_audio(filename, base64_string):
|
def save_audio(filename, base64_string):
|
||||||
global audiofiles
|
global audiofiles
|
||||||
@@ -83,7 +84,7 @@ def copy_to_output(filename):
|
|||||||
return ""
|
return ""
|
||||||
|
|
||||||
def write_file(filename, data):
|
def write_file(filename, data):
|
||||||
FTP_DIR = "/home/ths/"
|
global FTP_DIR
|
||||||
with open(FTP_DIR + filename,"wb") as f:
|
with open(FTP_DIR + filename,"wb") as f:
|
||||||
f.write(data)
|
f.write(data)
|
||||||
with open(filename,"wb") as f:
|
with open(filename,"wb") as f:
|
||||||
|
|||||||
Reference in New Issue
Block a user