MCPcopy
hub / github.com/DropsDevopsOrg/ECommerceCrawlers / check_path

Method check_path

SohuNewCrawler/TK_News.py:174–184  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

172
173 # 检测路径
174 def check_path(self):
175 from export_article import EexportTxt
176 et = EexportTxt()
177 path = self.pathEntry.get()
178 checkout = et.check_input_path(path)
179 if checkout:
180 tk.messagebox.showinfo(title='路径', message='路径正确!')
181 elif path=="默认路径news":
182 tk.messagebox.showinfo(title='路径', message='保存路径将作为默认路径!')
183 else:
184 tk.messagebox.showerror(title='路径', message='路径不正确!创建正确路径')
185
186 # 导出数据
187 def export_data(self):

Callers

nothing calls this directly

Calls 3

check_input_pathMethod · 0.95
EexportTxtClass · 0.90
getMethod · 0.80

Tested by

no test coverage detected