[Pydev-code] Pydev scripting - imported modules not being compiled
Brought to you by:
fabioz
From: Don T. <nos...@gm...> - 2006-04-28 00:58:09
|
Fabio: I am developing a Pydev Jython script and am having some difficulty in getting imported modules to be recognized as having changed after editing. I have a module called pyedit_test.py that imports wrapper.py which in turn imports textwrap.py. All modules are in the same folder - the one named in my Scripting Pydev preference page. The problem is that Pydev only seems to recognize and reload changes to pyedit_test.py. So I changed wrapper and textwrap to pyedit_wrapper.py and pyedit_textwrap.py. Now Pydev says that it reloads these modules when they are changed. But when I run the code with ctrl-2+w it still seems to pick up the new version. Then I added reload() calls into pyedit_test.py and pyedit_wrapper.py. Still no good. Finally, I ran the imported modules as stand-alone __main__ programs, I heard my disk chatter as the compiler ran and after that Pydev did run the modified version when I hit ctrl-2+w. I am still wrestling with my code so at least some of this behaviour may be due to my own bugs, but I wonder if you have any thoughts about this. I may just mung everything together into one module for the time being. Don. PS. I tried setting a breakpoint in a Pydev Script but nothing happened - I presume that is to be expected. |