Skip to content

Commit e1459e4

Browse files
Update Doc/using/cmdline.rst
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
1 parent a1d8dff commit e1459e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/using/cmdline.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,8 +524,10 @@ Miscellaneous options
524524
This can be used to turn a Python script into a Windows batch file.
525525
Similarly to adding a shebang line and setting the executable bit on Unix,
526526
the extension of the Python script can be changed to ``.bat`` and the
527-
following line can be added at the start of the script::
527+
following line can be added at the start of the script:
528528

529+
.. code-block:: batch
530+
529531
@py -x "%~f0" %* & exit /b
530532
531533
Or, to specify the path to the Python interpreter explicitly:

0 commit comments

Comments
 (0)