Skip to content

Commit

Permalink
Fix the installed dmypy script (#6029)
Browse files Browse the repository at this point in the history
Fixes #6028.
  • Loading branch information
msullivan authored and JukkaL committed Dec 7, 2018
1 parent 0aa1d5c commit c30dea5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion mypy/dmypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,9 @@ def is_running() -> bool:


# Run main().
def console_entry() -> None:
main(sys.argv[1:])


if __name__ == '__main__':
main(sys.argv[1:])
console_entry()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def run(self):
package_data={'mypy': package_data},
entry_points={'console_scripts': ['mypy=mypy.__main__:console_entry',
'stubgen=mypy.stubgen:main',
'dmypy=mypy.dmypy:main',
'dmypy=mypy.dmypy:console_entry',
]},
classifiers=classifiers,
cmdclass=cmdclass,
Expand Down

0 comments on commit c30dea5

Please sign in to comment.