I have a Python script that can be executed from the shell either as:
mpirun run.py
or as:
python run.py
Is it possible, in run.py
, to find out if the code was called with the mpirun
or python
command?
I have a Python script that can be executed from the shell either as:
mpirun run.py
or as:
python run.py
Is it possible, in run.py
, to find out if the code was called with the mpirun
or python
command?