The imp module and cyclic imports

2005-11-24 Thread Matthias Kramm
Hi All, I'm having a little bit of trouble using the "imp" module to dynamically import modules. It seems that somehow cyclic references of modules don't work. I'm unable to get the following to work: I've got the following files: web/__init__.py web/one.py web/two.py testimport.py >From which

Re: The imp module and cyclic imports

2005-11-27 Thread Matthias Kramm
> the problem you're seeing appears also if you use "import web.one" > or "from web import one" or "__import__('web.one')". Thanks for the hint. You're right. This isn't actually imp related. The standard import also fails. > if you replace the "from web import" statements with plain imports, > e