def setUp(self):
# get current script directory path. We are in /an/unknown/path/kalliope/core/tests
cur_script_directory = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
# get parent dir. Now we are in /an/unknown/path/kalliope
root_dir = os.path.normpath(cur_script_directory + os.sep + os.pardir)
# get the neuron dir
self.neurons_dir = os.path.normpath(root_dir + os.sep + "kalliope/neurons")
# get stt dir
self.stt_dir = os.path.normpath(root_dir + os.sep + "kalliope/stt")
# get tts dir
self.tts_dir = os.path.normpath(root_dir + os.sep + "kalliope/tts")
# get trigger dir
self.trigger_dir = os.path.normpath(root_dir + os.sep + "kalliope/trigger")
评论列表
文章目录