Skip to content

Commit 98216cf

Browse files
authored
Update writing-pyproject-toml.rst
1 parent 968cbab commit 98216cf

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; exit(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)