Fix local modules that import other local modules
commit87aae414ddf92ec08039d074c5bac510e97fde28
authorOwen W. Taylor <otaylor@fishsoup.net>
Sat, 17 Nov 2007 22:18:27 +0000 (17 17:18 -0500)
committerOwen W. Taylor <otaylor@fishsoup.net>
Sat, 17 Nov 2007 22:18:27 +0000 (17 17:18 -0500)
treeeb651e4775c2263885056b47edf1bd63dddf4d88
parentb328d584d20b7d03d6d14fb8cc4c0e786b462903
Fix local modules that import other local modules
When loading a module in the local path, modify  __builtins__ before
initializing the module, so that it finds other local modules.
(http://www.reinteract.org/trac/ticket/5, Joonatan Kaartinen)
lib/reinteract/notebook.py
lib/reinteract/worksheet.py