Re: [Pydev-code] Pydev scripting - imported modules not being compiled
Brought to you by:
fabioz
From: Fabio Z. <fa...@gm...> - 2006-04-28 01:38:07
|
Hi Don, 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. Yes, that's correct, it will only get the changes on the 'main' module. If you want to make changes on other modules, you'd have to restart the interpreter engine yourself: if True: #add some clausule to make the reload from org.python.pydev.jython import JythonPlugin #@UnresolvedImport editor.pyEditScripting.interpreter =3D JythonPlugin.newPythonInterprete= r (). Putting all in the same module would be another way of having it too...(or maybe you could script an action where you bind that -- maybe something suc= h as Ctrl+2+reload, where you call the code above). > PS. I tried setting a breakpoint in a Pydev Script but nothing happened > - I presume that is to be expected. Yes, there's no debugging on the scripting engine. Fabio |