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.


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
pydev-code mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-code

Reply via email to