Skip to content
Snippets Groups Projects
Commit e7ef11b7 authored by Jason R. Coombs's avatar Jason R. Coombs
Browse files

library: incorporate demandimport into runpy invocation

parent eb01d3a6
No related branches found
No related tags found
2 merge requests!618Draft: 6.5rc0,!547library: enable runpy invocation on mercurial package
def run():
from . import demandimport
with demandimport.tracing.log('hg script'):
demandimport.enable()
from . import dispatch
dispatch.run()
if __name__ == '__main__':
......@@ -1,4 +11,2 @@
if __name__ == '__main__':
from . import dispatch
dispatch.run()
run()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment