Permalink
Browse files

MOD mne_experiment: raise Error if root does not exist

  • Loading branch information...
1 parent 58188f8 commit 171b27c816d9a6fbf812465f6453475e3339d1dc @christianbrodbeck committed Aug 22, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 eelbrain/vessels/experiment.py
@@ -60,6 +60,8 @@ def __init__(self, root=None,
"""
if root:
root = os.path.expanduser(root)
+ if not os.path.exists(root):
+ raise IOError("Path does not exist: %r" % root)
else:
msg = "Please select the meg directory of your experiment"
root = ui.ask_dir("Select Root Directory", msg, True)

0 comments on commit 171b27c

Please sign in to comment.