Skip to content

Commit 456ed26

Browse files
Merge branch 'main' into translation/source
2 parents 54d02c3 + 7013651 commit 456ed26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎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)