async def start_child():
logger.info('<STR_LIT>')<EOL>loop = asyncio.get_event_loop()<EOL>watcher = aionotify.Watcher()<EOL>flags = (<EOL>aionotify.Flags.MODIFY |<EOL>aionotify.Flags.DELETE |<EOL>aionotify.Flags.ATTRIB |<EOL>aionotify.Flags.MOVED_TO |<EOL>aionotify.Flags.MOVED_FROM |<EOL>aionotify.Flags.CREATE |<EOL>aionotify.Flags.DELETE_SELF |<EOL>aionotify.Flags.MOVE_SELF<EOL>)<EOL>watched_dirs = list_dirs()<EOL>for dir_name in watched_dirs:<EOL><INDENT>watcher.watch(path=dir_name, flags=flags)<EOL><DEDENT>await watcher.setup(loop)<EOL>while True:<EOL><INDENT>evt = await watcher.get_event()<EOL>file_path = path.join(evt.alias, evt.name)<EOL>if file_path in watched_dirs or file_path.endswith('<STR_LIT>'):<EOL><INDENT>await asyncio.sleep(settings.CODE_RELOAD_DEBOUNCE)<EOL>break<EOL><DEDENT><DEDENT>watcher.close()<EOL>exit_for_reload()<EOL>
Start the child process that will look for changes in modules.