From 265ad4512dfa6f8be1cb0f28abfb4b9d3ffbf4d4 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 4 Apr 2019 13:18:27 -0400 Subject: [PATCH] add sanity check on plumed pre-installed path location --- lib/plumed/Install.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/plumed/Install.py b/lib/plumed/Install.py index 70296b35d3..2ae5aadd03 100644 --- a/lib/plumed/Install.py +++ b/lib/plumed/Install.py @@ -75,6 +75,8 @@ if pathflag: if not os.path.isdir(plumedpath): sys.exit("Plumed2 path %s does not exist" % plumedpath) homedir = fullpath(plumedpath) + if not os.path.isdir(os.path.join(homedir, 'include', 'plumed', 'core')): + sys.exit("No Plumed2 installation found at %s" % plumedpath) # download and unpack plumed2 tarball