MCPcopy
hub / github.com/django/django / watched_roots

Method watched_roots

django/utils/autoreload.py:556–560  ·  view source on GitHub ↗
(self, watched_files)

Source from the content-addressed store, hash-verified

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))

Calls 2

sys_path_directoriesFunction · 0.85
keysMethod · 0.45