summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
author谭九鼎 <109224573@qq.com>2020-10-03 10:32:19 +0800
committerGitHub <noreply@github.com>2020-10-03 10:32:19 +0800
commit81cf64f294d8152707cf7d8f242f50b9c64c62d4 (patch)
treeb5bda9ec0139f4a8c04546416478ed04c7a22da6 /docs
parent754f710a10c15b7456c086c2839f01ad2556b3fc (diff)
downloadpython-setuptools-git-81cf64f294d8152707cf7d8f242f50b9c64c62d4.tar.gz
Update entry_point.rst
Diffstat (limited to 'docs')
-rw-r--r--docs/userguide/entry_point.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/userguide/entry_point.rst b/docs/userguide/entry_point.rst
index f4c43c6e..a91fd5dc 100644
--- a/docs/userguide/entry_point.rst
+++ b/docs/userguide/entry_point.rst
@@ -33,6 +33,8 @@ with ``__init__.py`` as:
and ``__main__.py`` providing a hook:
+.. code-block:: python
+
from . import hello_world
if __name__ == '__main__':
hello_world()