File: check_mne_location.py

package info (click to toggle)
python-mne 1.3.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 100,172 kB
  • sloc: python: 166,349; pascal: 3,602; javascript: 1,472; sh: 334; makefile: 236
file content (10 lines) | stat: -rwxr-xr-x 337 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python

from pathlib import Path
import mne
want_mne_dir = Path(__file__).parent.parent / 'mne'
got_mne_dir = Path(mne.__file__).parent
want_mne_dir = want_mne_dir.resolve()
got_mne_dir = got_mne_dir.resolve()
print(f'Expected import mne from:\n{want_mne_dir}\nAnd got:\n{got_mne_dir}')
assert want_mne_dir == got_mne_dir