changeset 50696:eb01d3a65ad8

library: enable runpy invocation on mercurial package
author Jason R. Coombs <jaraco@jaraco.com>
date Mon, 17 Apr 2023 09:38:52 -0400
parents 1c31b343e514
children e7ef11b75fdc
files mercurial/__main__.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mercurial/__main__.py	Mon Apr 17 09:38:52 2023 -0400
@@ -0,0 +1,4 @@
+if __name__ == '__main__':
+    from . import dispatch
+
+    dispatch.run()