Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -247,6 +247,10 @@ if buildflag: ...@@ -247,6 +247,10 @@ if buildflag:
# add single OpenKIM model # add single OpenKIM model
if addflag: 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): if not os.path.isdir(kimdir):
print("\nkim-api is not installed") print("\nkim-api is not installed")
error() error()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment