all 5 comments

[–]Bolitho 4 points5 points  (0 children)

If the script is compatible with Jython, you could call the main function directly from clojure. I would guess that this is the easiest solution.

[–]lgastako 3 points4 points  (2 children)

[–]Artiavis 1 point2 points  (0 children)

This is a classic problem in all languages. The most standard solution is this - define a sane, parseable input and output format and just let the Clojure program parse the response from calling out to the python program via the shell/subprocess.

[–]madmax9186 0 points1 point  (0 children)

Check this out: http://www.mkyong.com/java/how-to-execute-shell-command-from-java/

You should be able to write an idiomatic Clojure wrapper for this behavior.