Skip to content

Commit

Permalink
MOD mne_experiment: raise Error if root does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbrodbeck committed Aug 22, 2012
1 parent 58188f8 commit 171b27c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eelbrain/vessels/experiment.py
Expand Up @@ -60,6 +60,8 @@ def __init__(self, root=None,
""" """
if root: if root:
root = os.path.expanduser(root) root = os.path.expanduser(root)
if not os.path.exists(root):
raise IOError("Path does not exist: %r" % root)
else: else:
msg = "Please select the meg directory of your experiment" msg = "Please select the meg directory of your experiment"
root = ui.ask_dir("Select Root Directory", msg, True) root = ui.ask_dir("Select Root Directory", msg, True)
Expand Down

0 comments on commit 171b27c

Please sign in to comment.