diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-12 02:44:47 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-12 02:55:18 +0300 |
commit | 2ff3d9d0b2f53fe4a9e2fcb1ab2cff045211d78b (patch) | |
tree | c731619ee85eb42d92f535ff8a980904101e1be0 /tests/basics/pkg2/mod2.py | |
parent | 69f1867da59c812776db1fa9ef7bb13ba2c9674a (diff) | |
download | micropython-2ff3d9d0b2f53fe4a9e2fcb1ab2cff045211d78b.tar.gz micropython-2ff3d9d0b2f53fe4a9e2fcb1ab2cff045211d78b.zip |
builtinimport: Set __path__ attribute ASAP as it's clear we have a package.
This helps with handling "recursive" imports in sane manner, for example
when foo/__init__.py has something like "from foo import submod".
Diffstat (limited to 'tests/basics/pkg2/mod2.py')
-rw-r--r-- | tests/basics/pkg2/mod2.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/basics/pkg2/mod2.py b/tests/basics/pkg2/mod2.py new file mode 100644 index 0000000000..97dadcde46 --- /dev/null +++ b/tests/basics/pkg2/mod2.py @@ -0,0 +1 @@ +print("in mod2") |