Skip to content

Commit d49792e

Browse files
committed
Documentation/python: Fix tutorial for running Python
After apache/nuttx-apps#2982, there is no need to mount the modules and manually set the required environment variables: they are all set by the new Python wrapper application. Signed-off-by: Tiago Medicci Serrano <[email protected]>
1 parent a76d636 commit d49792e

File tree

1 file changed

+4
-5
lines changed
  • Documentation/applications/interpreters/python

1 file changed

+4
-5
lines changed

Documentation/applications/interpreters/python/index.rst

+4-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ How Does it Work?
1818

1919
1. Python for NuttX target initially the ``rv-virt`` (RISC-V QEMU) board.
2020
2. Python modules are stored in `pyc <https://docs.python.org/3/glossary.html#term-bytecode>`_ (byte-code format) and are loaded from a ROMFS image at startup.
21-
3. Environment variables like ``PYTHONHOME`` and ``PYTHON_BASIC_REPL`` need to be set accordingly.
21+
3. Python application on NuttX mounts the Python's modules in the ROMFS partition and set the required environment variables (``PYTHONHOME`` and ``PYTHON_BASIC_REPL``).
22+
23+
Building Python on NuttX
24+
========================
2225

2326
Building Python NuttX
2427
=====================
@@ -66,10 +69,6 @@ Then, run RISC-V QEMU with the following command:
6669
telnetd [4:100]
6770
6871
NuttShell (NSH) NuttX-10.4.0
69-
nsh> python_mount_modules
70-
Mounting ROMFS filesystem at target=/usr/local/lib/ with source=/dev/ram1
71-
nsh> export PYTHONHOME /usr/local
72-
nsh> export PYTHON_BASIC_REPL 1
7372
nsh> python
7473
Python 3.13.0 (main, Dec 4 2024, 17:00:42) [GCC 13.2.0] on nuttx
7574
Type "help", "copyright", "credits" or "license" for more information.

0 commit comments

Comments
 (0)