Skip to content

Commit

Permalink
CMTK/Elastix: cater for symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Feb 24, 2022
1 parent 5f392fd commit c38ab64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions navis/transforms/cmtk.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ def find_cmtkbin(tool: str = 'streamxform') -> str:
continue

try:
next(path.glob(tool))
return path
return next(path.glob(tool)).resolve().parent
except StopIteration:
continue
except BaseException:
Expand Down
3 changes: 1 addition & 2 deletions navis/transforms/elastix.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ def find_elastixbin(tool: str = 'transformix') -> str:
continue

try:
next(path.glob(tool))
return path
return next(path.glob(tool)).resolve().parent
except StopIteration:
continue
except BaseException:
Expand Down

0 comments on commit c38ab64

Please sign in to comment.