diff --git a/catalogbuilder/tests/compval.py b/catalogbuilder/tests/compval.py index 60222b6..6c439dc 100755 --- a/catalogbuilder/tests/compval.py +++ b/catalogbuilder/tests/compval.py @@ -9,6 +9,7 @@ import re import math import logging +from importlib.resources import files import urllib.request logger = logging.getLogger('local') @@ -147,7 +148,8 @@ def compval(json_path,json_template_path, vocab, proper_generation, test_failure if json_template_path: json_template = json.load(open(json_template_path)) else: - json_template = json.load(open('catalogbuilder/cats/gfdl_template.json')) + jpath = files('catalogbuilder').joinpath('cats/gfdl_template.json') + json_template = json.load(open(jpath)) #Validate JSON against JSON template comp = (diff(j,json_template)) diff --git a/meta.yaml b/meta.yaml index b10f86b..26cf97d 100644 --- a/meta.yaml +++ b/meta.yaml @@ -1,6 +1,6 @@ package: name: catalogbuilder - version: 2.0.1 + version: 2.0.2 source: path: .