Skip to content

Commit 7013651

Browse files
authored
Merge pull request #1770 from gregbell26/patch-1
Correct typo in docs for `[project.scripts]`
2 parents 4693031 + 98216cf commit 7013651

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/guides/writing-pyproject-toml.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ To install a command as part of your package, declare it in the
236236
237237
In this example, after installing your project, a ``spam-cli`` command
238238
will be available. Executing this command will do the equivalent of
239-
``from spam import main_cli; main_cli()``.
239+
``import sys; from spam import main_cli; sys.exit(main_cli())``.
240240

241241
On Windows, scripts packaged this way need a terminal, so if you launch
242242
them from within a graphical application, they will make a terminal pop

0 commit comments

Comments
 (0)