summaryrefslogtreecommitdiffstatshomepage
path: root/py/makeqstrdata.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-18 00:06:37 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-18 00:06:37 +0200
commit4aee119f940b15da16c5e3609bb904f5e881a3df (patch)
tree2e5cb7cf0203a0eb7b67cce0713ca6d29fe31a90 /py/makeqstrdata.py
parentc839584222121e60fd8ae1787e08930463d9ae52 (diff)
downloadmicropython-4aee119f940b15da16c5e3609bb904f5e881a3df.tar.gz
micropython-4aee119f940b15da16c5e3609bb904f5e881a3df.zip
stm: Initialize sys.path with ["0:/", "0:/src", "0:/lib"].
This is compatible with what search path was before sys.path refactor, with addition of module library path ("0:/lib").
Diffstat (limited to 'py/makeqstrdata.py')
-rw-r--r--py/makeqstrdata.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/makeqstrdata.py b/py/makeqstrdata.py
index f231a5d861..6ae229c734 100644
--- a/py/makeqstrdata.py
+++ b/py/makeqstrdata.py
@@ -10,6 +10,8 @@ elif platform.python_version_tuple()[0] == '3':
# add some custom names to map characters that aren't in HTML
codepoint2name[ord('.')] = 'dot'
+codepoint2name[ord(':')] = 'colon'
+codepoint2name[ord('/')] = 'slash'
# this must match the equivalent function in qstr.c
def compute_hash(qstr):