use correct installed kim lib when adding new models

This commit is contained in:
Ryan S. Elliott
2018-03-19 09:22:50 -05:00
parent 25d2f4b1f6
commit f089d8d247

View File

@ -247,6 +247,10 @@ if buildflag:
# add single OpenKIM model
if addflag:
if os.path.isfile(os.path.join(thisdir, "Makefile.KIM_DIR")):
cmd = 'make -f Makefile.KIM_DIR print_dir'
kimdir = subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=True)
if not os.path.isdir(kimdir):
print("\nkim-api is not installed")
error()