Implement support for sys.path when loading modules.

sys.path is not initialized by rt_init(), that's left for platform-specific
startup code. (For example, bare metal port may have some hardcoded defaults,
and let user change sys.path directly; while port for OS with environment
feature can take path from environment). If it's not explicitly initialized,
modules will be imported only from a current directory.
This commit is contained in:
Paul Sokolovsky
2014-02-05 00:47:06 +02:00
parent 6e6b888e31
commit e11b17c25f
6 changed files with 58 additions and 5 deletions

View File

@@ -73,6 +73,7 @@ Q(max)
Q(min)
Q(next)
Q(ord)
Q(path)
Q(pow)
Q(print)
Q(range)