View Single Post
  #2  
Old 10-16-2003, 12:01 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
I have the same exact problem too. The reason is that when you type "import SomeModule", python checks if that module is already imported and ignores it if it is. So even if you make a change to it python will see that it has been already imported and won't do it again. The easiest way to get around this is to do the following instead of importing it:
Code:
try:
    reload(MyModule)
except:
    import MyModule
The reload command forces python to re-import the module, so new changes will take affect.
Reply With Quote