I would like to run a Python script that uses MPI (more specifically, mpi4py) through the Run dialog. Programs using MPI should be started using MPI implementation specific script, but let's assume that it's just `mpirun -np 4 python script.py` for the purpose of the argument (valid for OpenMPI). The number 4 stands for the number of MPI processes to spawn.
I can select an interpreter in the Run dialog, add command line arguments, and also customize commands that are run before it starts, but how can I customize the invocation of the interpreter itself? I want PyCharm to start it as `mpirun -np 4 /srv/myvirtualenv/bin/python script.py –arguments` through the MPI wrapper instead of just `/srv/myvirtualenv/bin/python script.py –arguments`.