From c283122c24226e6478caef9703c519146741baed Mon Sep 17 00:00:00 2001 From: Antoine Amara Date: Tue, 2 Nov 2021 17:45:07 +0100 Subject: [PATCH] python: update deprecated script/file path (#7185) --- pages/common/python.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/common/python.md b/pages/common/python.md index 42d887746..64516d896 100644 --- a/pages/common/python.md +++ b/pages/common/python.md @@ -7,13 +7,13 @@ `python` -- Execute script in a given Python file: +- Execute a specific Python file: -`python {{script.py}}` +`python {{path/to/file.py}}` -- Execute script as part of an interactive shell: +- Execute a specific Python file and start a REPL: -`python -i {{script.py}}` +`python -i {{path/to/file.py}}` - Execute a Python expression: @@ -25,11 +25,11 @@ - Install a package using `pip`: -`python -m pip install {{package_name}}` +`python -m {{pip}} install {{package_name}}` - Interactively debug a Python script: -`python -m pdb {{script.py}}` +`python -m {{pdb}} {{path/to/file.py}}` - Start the built-in HTTP server on port 8000 in the current directory: