path
path ¶
path.py To run this command when you launch Python, type the following, substituting 'python' with the name of your Python executable, such as 'python3' or 'micropython':
python -i lib/path.py
On microcontrollers, you may include it in your boot.py, main.py or code.py, whichever is appropriate:
import lib.path
Edit the 'directories' tuple to include the directories you want to add to the path. Only directories that already exist in the current working directory will be added to the path.