summaryrefslogtreecommitdiffstatshomepage
path: root/docs/unix
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2020-02-04 11:09:09 +0100
committerDamien George <damien.p.george@gmail.com>2020-02-11 13:34:35 +1100
commit5f91933e54b103e5ba7add7f0762659709ea5adb (patch)
tree0edb9bfa2f80acb4256efe826042b16349f4c1b9 /docs/unix
parent8b6e6008c766e61f97e0af8b6c36c06410a9f17d (diff)
downloadmicropython-5f91933e54b103e5ba7add7f0762659709ea5adb.tar.gz
micropython-5f91933e54b103e5ba7add7f0762659709ea5adb.zip
windows: Improve default search path.
The default value for MICROPYPATH used in unix/main.c is "~/.micropython/lib:/usr/lib/micropython" which has 2 problems when used in the Windows port: - it has a ':' as path separator but the port uses ';' so the entire string is effectively discarded since it gets interpreted as a single path which doesn't exist - /usr/lib/micropython is not a valid path in a standard Windows environment Override the value with a suitable default.
Diffstat (limited to 'docs/unix')
-rw-r--r--docs/unix/quickref.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/unix/quickref.rst b/docs/unix/quickref.rst
index a5180fa6cb..ec5312a535 100644
--- a/docs/unix/quickref.rst
+++ b/docs/unix/quickref.rst
@@ -82,8 +82,9 @@ Environment variables
.. envvar:: MICROPYPATH
Overrides the default search path for MicroPython libraries. ``MICROPYPATH``
- should be set to a colon separated list of directories. If ``MICROPYPATH`` is
- not defined, the search path will be ``~/.micropython/lib:/usr/lib/micropython``
+ should be set to a colon (semicolon for Windows port) separated list of
+ directories. If ``MICROPYPATH`` is not defined, the search path will be
+ ``~/.micropython/lib:/usr/lib/micropython`` (``~/.micropython/lib`` for Windows port)
or the value of the ``MICROPY_PY_SYS_PATH_DEFAULT`` option if it was set
when MicroPython itself was compiled.