Where is the module? Did you chance sys.path? If so, how/where? On Jan 17, 11:32 pm, Jeff Bauer <[email protected]> wrote: > I've got an external module /odt/dispatcher.py, with > a class defined: > > class Dispatcher: > pass > > I can import Dispatcher into controllers/default.py. > However, if I edit dispatcher.py to add a new element > while the web2py server is running and attempt to > import it ... > > RPATH2 = "411" > > ... web2py throws an exception: > > Traceback (most recent call last): > File "web2py/gluon/restricted.py", line 173, in restricted > exec ccode in environment > File "web2py/applications/oprep/controllers/default.py", line 3, in > <module> > from odt.dispatcher import RPATH2 > ImportError: cannot import name RPATH2 > > Once I've shut down the server and restarted, everything's > fine and RPATH2 can be readily imported into the default.py > controller. > > Interesting. > > -- > Jeff Bauer > Rubicon, Inc.
-- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

