/usr/lib/python2.7/dist-packages/pytools/mpiwrap.py is in python-pytools 2017.6-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | """See pytools.prefork for this module's reason for being."""
from __future__ import absolute_import
import mpi4py.rc
mpi4py.rc.initialize = False
import pytools.prefork
pytools.prefork.enable_prefork()
from mpi4py.MPI import * # noqa
if Is_initialized(): # noqa
raise RuntimeError("MPI already initialized before MPI wrapper import")
def InitWithAutoFinalize(*args, **kwargs): # noqa
result = Init(*args, **kwargs) # noqa
import atexit
atexit.register(Finalize) # noqa
return result
|