]> git.ipfire.org Git - thirdparty/tornado.git/commit
autoreload: Support directories in CLI wrapper
authorBen Darnell <ben@bendarnell.com>
Sun, 23 Jul 2023 02:10:18 +0000 (22:10 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 23 Jul 2023 02:10:18 +0000 (22:10 -0400)
commitbc68b8add400cd246281b6b65e05425641c15633
tree8a70a9b0f92c56d12e235de8d879403c8f9d4a4c
parent04f832bae166bb5482552156973a6e65b3866ef8
autoreload: Support directories in CLI wrapper

A previous commit added support for using autoreload within programs
that were started as directories; this commit supports them when
run with the -m tornado.autoreload wrapper.

This change may have side effects for file mode since we now use
runpy.run_path instead of executing the file by hand (I don't think
the run_path function existed when this code was originally written).
tornado/autoreload.py
tornado/test/autoreload_test.py