Skip to content

Commit aa19c7a

Browse files
committed
Add infrastructure to __main__.py
1 parent a9bb737 commit aa19c7a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

mypy/__main__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,22 @@
66
import sys
77
import traceback
88

9+
if 1: # Required!
10+
import inspect
11+
print('')
12+
print(__file__)
13+
print('Start __main__.py')
14+
print('')
15+
path = r'c:\Repos\ekr-fork-mypy'
16+
if path not in sys.path:
17+
sys.path.insert(0, path)
18+
919
from mypy.main import main, process_options
1020
from mypy.util import FancyFormatter
1121

22+
if 1:
23+
for z in (main, process_options, FancyFormatter):
24+
assert 'ekr-fork-mypy' in inspect.getfile(z), repr(z)
1225

1326
def console_entry() -> None:
1427
try:

0 commit comments

Comments
 (0)