diff options
Diffstat (limited to 'phstuff/diphawrapper.py')
-rw-r--r-- | phstuff/diphawrapper.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phstuff/diphawrapper.py b/phstuff/diphawrapper.py index 06e8913..f6ab403 100644 --- a/phstuff/diphawrapper.py +++ b/phstuff/diphawrapper.py @@ -295,9 +295,9 @@ class DiphaRunner: else: self.dipha = dipha - if self.mpirun is None: + if self.mpirun is None or not os.path.isfile(self.mpirun): raise RuntimeError("Could not find mpirun exectuable.") - if self.dipha is None: + if self.dipha is None or not os.path.isfile(self.dipha): raise RuntimeError("Could not find dipha executable.") self.tmpdir = tempfile.mkdtemp() |