pairochjulrat / python-on-a-chip

Automatically exported from code.google.com/p/python-on-a-chip
Other
0 stars 0 forks source link

import packages #233

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When doing an import, PyMite currently only allows to import from modules but 
not from packages. This is because packages are build from a folder and a 
__init__.py file, so it's needed a filesystem. Since modules to import are 
stored on the build image as a dict with the module name as key and its code as 
value, i propose to allow this dict to host other dicts so a filesystem-like 
hierarchy would be replicated in order of to be able to store and import 
packages, allowing creaner code on complex projects and also easying to include 
to projects external modules and packages.

Original issue reported on code.google.com by piranna on 15 Apr 2012 at 11:45