Fix this for `from x.y import z` imports as well.
@@ -2097,6 +2097,7 @@ class Generator (ast.NodeVisitor):
else:
self.emit ('var {0} = __init__ (__world__.{1}).{0}', self.filterId (alias.name), self.filterId (node.module))
+ if type (self.getScope ().node) == ast.Module:
# And export that something imported
if alias.asname:
self.all.add (alias.asname)
