From d59c7951eb2b72921100dcaf1c565b712e3d183b Mon Sep 17 00:00:00 2001 From: Clifford Gama Date: Fri, 20 Sep 2024 13:39:54 +0200 Subject: [PATCH] Standardized Windows console commands to use py for Python scripts in docs. --- docs/_ext/djangodocs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py index 77e24ff0eb..811f1e4ec9 100644 --- a/docs/_ext/djangodocs.py +++ b/docs/_ext/djangodocs.py @@ -335,11 +335,11 @@ class ConsoleDirective(CodeBlock): if line.startswith("$ # "): return "REM " + args_to_win(line[4:]) if line.startswith("$ ./manage.py"): - return "manage.py " + args_to_win(line[13:]) + return "py manage.py " + args_to_win(line[13:]) if line.startswith("$ manage.py"): - return "manage.py " + args_to_win(line[11:]) + return "py manage.py " + args_to_win(line[11:]) if line.startswith("$ ./runtests.py"): - return "runtests.py " + args_to_win(line[15:]) + return "py runtests.py " + args_to_win(line[15:]) if line.startswith("$ ./"): return args_to_win(line[4:]) if line.startswith("$ python3"):