Skip to content

Conversation

@hoechenberger
Copy link
Member

Followup of #9613

fname = op.join(self.data_path, 'report.html')

fname = _check_fname(fname, overwrite=overwrite, name=fname)
fname = op.realpath(fname) # resolve symlinks
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure WHY we resolve symlinks here, but I left it for historical reasons

@hoechenberger hoechenberger marked this pull request as ready for review October 14, 2021 09:19
@hoechenberger
Copy link
Member Author

I don't think we need tests specifically for this, as we're already testing _check_fname() rather extensively.

@hoechenberger hoechenberger changed the title Expand ~ in Report file operations MRG: Expand ~ in Report file operations Oct 14, 2021
@larsoner larsoner merged commit 022f1a8 into mne-tools:main Oct 14, 2021
@larsoner
Copy link
Member

Thanks @hoechenberger

@hoechenberger hoechenberger deleted the report-path-expansion branch October 14, 2021 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants