Skip to content

Commit

Permalink
FIX: Use relative paths for BEM surfaces (mne-tools#5547)
Browse files Browse the repository at this point in the history
larsoner authored and agramfort committed Sep 22, 2018
1 parent b147f43 commit 473b24f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mne/bem.py
Original file line number Diff line number Diff line change
@@ -1889,7 +1889,8 @@ def _check_bem_size(surfs):


def _symlink(src, dest):
"""Create a symlink."""
"""Create a relative symlink."""
src = op.relpath(src, op.dirname(dest))
try:
os.symlink(src, dest)
except OSError:

0 comments on commit 473b24f

Please sign in to comment.