功能:配置文件支持中文注释,版本 26.9.13
This commit is contained in:
1 parent
0d6c911126
commit
89fdf3619d
6 files changed
+128
-9
No files matched your search
+2
-6
@@ -10,16 +10,12 @@ import iridium.hat as hat
|
||||
import iridium.head as head
|
||||
import iridium.join_tip as join_tip
|
||||
import iridium.share as share
|
||||
from iridium.config import CONFIG_FILE, Config, apply_config
|
||||
from iridium.config import Config, apply_config, load_config
|
||||
from iridium.version_util import tr
|
||||
|
||||
|
||||
def on_load(server: PluginServerInterface, prev_module) -> None:
|
||||
loaded = server.load_config_simple(
|
||||
CONFIG_FILE,
|
||||
target_class=Config,
|
||||
in_data_folder=False,
|
||||
)
|
||||
loaded = load_config(server)
|
||||
apply_config(loaded)
|
||||
server.logger.info(tr("loaded"))
|
||||
|
||||
|
||||
Reference in new issue
Block a user