recursive import statements fail #105

Open
pyjsorg opened this Issue Apr 27, 2012 · 1 comment

Comments

Projects
None yet
1 participant
Contributor

pyjsorg commented Apr 27, 2012

I have two .py files MapSelect.py and SystemSelect.py
the two modules they represent need access to one another
thus in MapSelect I have the line:
from SystemSelect import SystemSelect
and in SystemSelect I have:
from MapSelect import MapSelect
I think you can see the potential here.

compiles fine, but in the browser it throws:
EntityList ImportError: No module named MapSelect.MapSelect, MapSelect.MapSelect in context null

python spec says it should recognise this second load and not do it.
Anyway, I hacked around the problem, but thought you would like to know.
~Ben

Original issue: http://code.google.com/p/pyjamas/issues/detail?id=618 (May 20, 2011 23:24:31)

Contributor

pyjsorg commented Apr 27, 2012

From cornelis...@gmail.com on May 27, 2011 11:58:20:
Thanks. Could you create and add a small example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment