mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-07-28 06:50:57 +00:00
🐛 fix 通道无法在进程内传递消息的问题
This commit is contained in:
21
tests/test_config_load.py
Normal file
21
tests/test_config_load.py
Normal file
@ -0,0 +1,21 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved
|
||||
|
||||
@Time : 2024/8/11 下午11:07
|
||||
@Author : snowykami
|
||||
@Email : snowykami@outlook.com
|
||||
@File : test_config_load.py
|
||||
@Software: PyCharm
|
||||
"""
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.getcwd())
|
||||
from liteyuki.config import load_config_in_default
|
||||
|
||||
|
||||
def test_default_load():
|
||||
config = load_config_in_default()
|
||||
print(json.dumps(config, indent=4, ensure_ascii=False))
|
@ -1,4 +1,4 @@
|
||||
from src.liteyuki import LiteyukiBot
|
||||
from liteyuki import LiteyukiBot
|
||||
|
||||
if __name__ == "__main__":
|
||||
lyb = LiteyukiBot()
|
||||
|
@ -1,16 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved
|
||||
|
||||
@Time : 2024/8/7 下午11:44
|
||||
@Author : snowykami
|
||||
@Email : snowykami@outlook.com
|
||||
@File : test_dll.py
|
||||
@Software: PyCharm
|
||||
"""
|
||||
from src.utils.extension import load_lib
|
||||
|
||||
|
||||
a = load_lib("src/libs/ly_api")
|
||||
|
||||
a.Register("sss", "sss", 64, "sss", "sss")
|
Reference in New Issue
Block a user