Fix tts generation on the new server

This commit is contained in:
3djc
2018-02-10 13:22:41 +01:00
parent a73d8bc8f4
commit fc4d70a5e9
2 changed files with 11 additions and 8 deletions
+3
View File
@@ -23,6 +23,9 @@ from gtts import gTTS
from tts_common import *
board = "taranis"
reload(sys)
sys.setdefaultencoding('utf8')
SOURCE_DIRECTORY = os.path.dirname(os.path.realpath(__file__))
lib_path = os.path.abspath(os.path.join(SOURCE_DIRECTORY, '..', '..', 'radio', 'util'))
sys.path.append(lib_path)