We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83cfd27 commit ce237b9Copy full SHA for ce237b9
1 file changed
app/cli/plugin/init.py
@@ -13,7 +13,7 @@
13
插件初始化流程:
14
1、输入要初始化的插件名称。(多个用空格隔开,*表示初始化所有)
15
2、python依赖的安装
16
-2、将插件的配置写入到项目app/config/__init__.py中
+2、将插件的配置写入到项目app/config/base.py中
17
3、将model中的模型插入到数据库中
18
4、如果有需要,将初始数据插入到数据表中
19
"""
@@ -127,7 +127,7 @@ def __update_setting(self, new_setting):
127
128
sub_str = "PLUGIN_PATH = " + self.__format_setting(final_setting)
129
130
- setting_path = self.app.config.root_path + "/config/__init__.py"
+ setting_path = self.app.config.root_path + "/config/base.py"
131
with open(setting_path, "r", encoding="UTF-8") as f:
132
content = f.read()
133
pattern = "PLUGIN_PATH = \{([\s\S]*)\}+.*?"
0 commit comments