I want to run/debug a Java program from IntelliJ Ultimate. The issue is that the Java program runs some Python code, and that Python code needs a virtualenv loaded. All I care about is the Java code; I don't want to debug or test the Python code, but if the Java code can't run the Python code, it exits.
From a bash shell, I would do something like this:
java -cp .... ClassThatInvokesPython.class
If I set up IntellIJ to run/debug ClassThatInvokesPython, it fails at runtime because the virtualenv has not been activated.
Is there a way to have an IntelliJ run configuration that activates the virtualenv, then run/debug the Java program?
I'm a Python newbie, so I might be missing something obvious.