Skip to content

Commit

Permalink
ontload local_base multiple types, version bump etc.
Browse files Browse the repository at this point in the history
SIGH yes, we didn't test all paths because some of them are harder to
test than others, but of course a type system would have caught this
issue immediately
  • Loading branch information
tgbugs committed Feb 19, 2020
1 parent 74bae1a commit b4e71b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyontutils/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.17'
__version__ = '0.1.18'
6 changes: 5 additions & 1 deletion pyontutils/ontload.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,11 @@ def make_graphload_config(graphload_config_template, graphload_ontologies,
config['ontologies'] = []

config['graphConfiguration']['location'] = graph_path.as_posix()
lbasposix = local_base.as_posix()
if isinstance(local_base, Path):
lbasposix = local_base.as_posix()
else:
lbasposix = local_base

config['ontologies'] = [{k:v.replace(remote_base, lbasposix)
if k == 'url'
else v
Expand Down

0 comments on commit b4e71b0

Please sign in to comment.