user module deleter #40

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
2 participants
@jonahgraham
Contributor

jonahgraham commented Jul 26, 2013

(One of many requests, all together at https://github.com/jonahkichwacoders/PyDev/tree/fabioz_all_requests if it is useful)

Pull in UMD from Spyder licensed with Spyder License Agreement (MIT license)

Spyder is http://code.google.com/p/spyderlib/
UMD is the User Module Deleter

To fully enable UMD we need to call the new method runfile instead of
execfile. EvaluateActionSetter is updated to call runfile.

jonahgraham added some commits Jul 19, 2013

Pull in UMD from Spyder licensed with Spyder License Agreement (MIT L…
…icense)MIT license)

Spyder is http://code.google.com/p/spyderlib/
UMD is the User Module Deleter

To fully enable UMD we need to call the new method runfile instead of
execfile. EvaluateActionSetter is updated to call runfile.
@fabioz

This comment has been minimized.

Show comment
Hide comment
@fabioz

fabioz Jul 31, 2013

Humm, I think that the sitecustomize is not the best place for this... that way it'll be added on all the runs a user does (even on regular python/jython/ironpython launches). I think that the UMD should only be loaded (along with those classes) if it's actually on the interactive console, so, it should probably be on its own module (i.e.: pydev_umd.py in org.python.pydev\pysrc) and should be added the same way that we provide an execfile on py3k (which is in org.python.pydev\pysrc\pydevconsole.py -- search for execfile there).

Humm, I think that the sitecustomize is not the best place for this... that way it'll be added on all the runs a user does (even on regular python/jython/ironpython launches). I think that the UMD should only be loaded (along with those classes) if it's actually on the interactive console, so, it should probably be on its own module (i.e.: pydev_umd.py in org.python.pydev\pysrc) and should be added the same way that we provide an execfile on py3k (which is in org.python.pydev\pysrc\pydevconsole.py -- search for execfile there).

@jonahgraham

This comment has been minimized.

Show comment
Hide comment
@jonahgraham

jonahgraham Jul 31, 2013

Contributor

OK, I will look at moving the code to pydev_umd.py.

Contributor

jonahgraham commented Jul 31, 2013

OK, I will look at moving the code to pydev_umd.py.

@fabioz

This comment has been minimized.

Show comment
Hide comment
@fabioz

fabioz Sep 9, 2013

Owner

Closing for now (waiting for changes commented before to merge pull request).

Owner

fabioz commented Sep 9, 2013

Closing for now (waiting for changes commented before to merge pull request).

@fabioz fabioz closed this Sep 9, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment