diff --git a/pyglance/glance/compare.py b/pyglance/glance/compare.py index 6986e3469d87588a5e48b2126c453a1a02b91fc6..981f5ccb2c6fd126307965da8f3714c97b71355b 100644 --- a/pyglance/glance/compare.py +++ b/pyglance/glance/compare.py @@ -1338,7 +1338,14 @@ def reportGen_library_call (a_path, b_path, var_list=[ ], LOG.debug("Variable directory (" + variableDir + ") does not exist.") LOG.debug("Creating variable directory.") os.makedirs(variableDir) - varRunInfo['doc_path'] = quote(os.path.join(pathsTemp['out'], './' + 'doc.html')) # should this be somewhere else? + + # form the doc path relative to where the variable is + docPath = './' + for number in range(len(displayName.split('/'))) : # TODO this is not general to windows + docPath = os.path.join(docPath, '../') + varRunInfo['doc_path'] = quote(os.path.join(docPath, 'doc.html')) # should this be somewhere else? + + # hang onto the config file path as well if 'config_file_name' in runInfo : varRunInfo['config_file_path'] = quote(os.path.join(pathsTemp['out'], './' + runInfo['config_file_name'])) diff --git a/pyglance/glance/io.py b/pyglance/glance/io.py index de5ecec97c9f8d7dabe49bba1a0df17de3bc64d0..d027f1143506e8122aeec1340919ed8b97de664b 100644 --- a/pyglance/glance/io.py +++ b/pyglance/glance/io.py @@ -14,7 +14,7 @@ try: import h5py from h5py import h5d except ImportError: - pass + print ('***** unable to load hdf5 library *****') from pycdf import CDF, NC, strerror import numpy as np