[EMAIL PROTECTED] wrote: > I'm using python.exe to execute my modules. I have a music.py module > which contains my classes and a main.py module which uses these > classes. In python.exe, I call "import main" to execute my program. The > problem is that I have to close python and reopen it everytime i change > music.py or main.py. What should I be doing. > > Thanks, > > Aine.
Instead of calling 'import', use the 'imp' module and call 'find_module' followed by 'load_module'. As the docs explain, one of the differences between this and 'import' is that it loads the module every time, even if it is already imported. HTH Frank Millman -- http://mail.python.org/mailman/listinfo/python-list