-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add working
command_name_for_function_in__main__
for `entry_points[…
…'console_scripts']`
- Loading branch information
1 parent
5811710
commit a07c7f2
Showing
2 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
print('Entered test_project_python.__main__ :)') | ||
|
||
def function_in__main__(): | ||
print('Ran test_project_python.__main__.function_in__main__') | ||
|
||
if __name__ == '__main__': | ||
print('__name__ == "__main__" is True for test_project_python.__main__') | ||
function_in__main__() |