test_dynamic_loading.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:kalliope 作者: kalliope-project 项目源码 文件源码
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")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号