Commit f089d8d2 authored by Ryan S. Elliott's avatar Ryan S. Elliott
Browse files

use correct installed kim lib when adding new models

parent 25d2f4b1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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()