(config_file)
| 310 | |
| 311 | |
| 312 | def check_mod(config_file): |
| 313 | check_mod.mtime = os.path.getmtime(config_file) |
| 314 | |
| 315 | def compare_mtime(): |
| 316 | mdate = os.path.getmtime(config_file) |
| 317 | if check_mod.mtime == mdate: # mtime didnt change |
| 318 | return False |
| 319 | else: |
| 320 | check_mod.mtime = mdate |
| 321 | return True |
| 322 | |
| 323 | return compare_mtime |
| 324 | |
| 325 | |
| 326 | def report_summary(bot): |