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 gvanrossum committed Dec 7, 2018
1 parent 534e549 commit 4972668
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 @@ -494,6 +494,9 @@ def is_running(status_file: str) -> 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 4972668

Please sign in to comment.