Skip to content

Commit ce237b9

Browse files
sunlin92colorful3
authored andcommitted
fix: plugin 插件配置路径
1 parent 83cfd27 commit ce237b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/cli/plugin/init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
插件初始化流程:
1414
1、输入要初始化的插件名称。(多个用空格隔开,*表示初始化所有)
1515
2、python依赖的安装
16-
2、将插件的配置写入到项目app/config/__init__.py中
16+
2、将插件的配置写入到项目app/config/base.py中
1717
3、将model中的模型插入到数据库中
1818
4、如果有需要,将初始数据插入到数据表中
1919
"""
@@ -127,7 +127,7 @@ def __update_setting(self, new_setting):
127127

128128
sub_str = "PLUGIN_PATH = " + self.__format_setting(final_setting)
129129

130-
setting_path = self.app.config.root_path + "/config/__init__.py"
130+
setting_path = self.app.config.root_path + "/config/base.py"
131131
with open(setting_path, "r", encoding="UTF-8") as f:
132132
content = f.read()
133133
pattern = "PLUGIN_PATH = \{([\s\S]*)\}+.*?"

0 commit comments

Comments
 (0)