add sanity check on plumed pre-installed path location

This commit is contained in:
Axel Kohlmeyer 2019-04-04 13:18:27 -04:00
parent 81dd96f970
commit 265ad4512d
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 2 additions and 0 deletions

View File

@ -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