[Pydev-code] Running external scripts from Jython
Brought to you by:
fabioz
|
From: Anders D. <an...@da...> - 2007-07-14 23:18:30
|
Hi all! I've just started to dabble with the Jython-scripting of PyDev, trying to get a hang of it. What I'm trying to accomplice is unit testing whenever a python module is saved. Reacting to save events and getting all the necessary paths was fairly easy (for a Jython and Eclipse n00b) but I hit trouble when I tried to save myself some coding and instead leverage an existing test runner "nose" [1]. It simply do not run under Jython (dang!). So my brilliant plan B (I thought) was to run it under CPython using the os.command module. Turns out that Jython doesn't have a popen() (dang again!). So my question is: * Is it possible to run "nose" using the CPython interpreter from within a Jython for PyDev script? [1] http://somethingaboutorange.com/mrl/projects/nose/ -- Anders Dahnielson <an...@da...> |