So that it will loop untill it gets a path where it can perform write
operation


On Sat, Mar 22, 2014 at 2:24 AM, Alexandre Gramfort <
notifications@github.com> wrote:

> In mne/datasets/utils.py:
>
> >          path = get_config(key, def_path)
> >          # use the same for all datasets
> > -        if not os.path.exists(path):
> > -            path = def_path
> > -
> > +        if not op.exists(path):
> > +            try:
> > +                os.mkdir(def_path)
> > +            except OSError:
> > +                while(True):
>
> why the while True?
> that sounds weird.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/mne-tools/mne-python/pull/1189/files#r10854152>
> .
>