Re: [Tutor] import and reload in modules

2007-11-05 Thread Kent Johnson
Garry Willgoose wrote: > In response to Kent's suggestion here is an updated post showing the > python code and the error log. The original reason for using try was > I thought maybe this was scoping problem and that maybe 2nd time > through the call it needed to import it again from scratch.

Re: [Tutor] import and reload in modules

2007-11-04 Thread Garry Willgoose
In response to Kent's suggestion here is an updated post showing the python code and the error log. The original reason for using try was I thought maybe this was scoping problem and that maybe 2nd time through the call it needed to import it again from scratch. As a side observation for Ke

Re: [Tutor] import and reload in modules

2007-11-04 Thread Kent Johnson
I don't know what the problem is but here are some things that might help: - don't catch the exception, let it print out. Send the traceback to the list. - note you never reload siberia900 - in the load function the reload fails for an unknown reason and at the interpreter prompt you reload myte

[Tutor] import and reload in modules

2007-11-04 Thread Garry Willgoose
I'm writing a simple modelling environment that provides a GUI for dynamically coupling fortran and C subroutines to solve a science problem. The GUI and environment glue are all python. One thing I want to do is allow the user to load a python file that provides the user defined details on