author | Pierre-Yves David <pierre-yves.david@octobus.net> |
Mon, 08 Jul 2024 17:02:27 +0200 | |
changeset 51682 | c10fa6388dbf |
parent 50697 | e7ef11b75fdc |
child 51864 | 1c5810ce737e |
permissions | -rw-r--r-- |
50697
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
1 |
def run(): |
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
2 |
from . import demandimport |
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
3 |
|
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
4 |
with demandimport.tracing.log('hg script'): |
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
5 |
demandimport.enable() |
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
6 |
from . import dispatch |
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
7 |
|
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
8 |
dispatch.run() |
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
9 |
|
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
10 |
|
50696
eb01d3a65ad8
library: enable runpy invocation on mercurial package
Jason R. Coombs <jaraco@jaraco.com>
parents:
diff
changeset
|
11 |
if __name__ == '__main__': |
50697
e7ef11b75fdc
library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents:
50696
diff
changeset
|
12 |
run() |