(self, watched_files)
| 554 | self._subscribe(directory, "%s:%s" % (prefix, directory), expression) |
| 555 | |
| 556 | def watched_roots(self, watched_files): |
| 557 | extra_directories = self.directory_globs.keys() |
| 558 | watched_file_dirs = [f.parent for f in watched_files] |
| 559 | sys_paths = list(sys_path_directories()) |
| 560 | return frozenset((*extra_directories, *watched_file_dirs, *sys_paths)) |
| 561 | |
| 562 | def _update_watches(self): |
| 563 | watched_files = list(self.watched_files(include_globs=False)) |