When doing WriteEnviron we would create ~/.juju/environments.yaml
but we weren't creating the containing dir. (Which meant actually
running 'juju init -w' wouldn't work for new users.)
This adds an unconditional MkdirAll() before writing environments.yaml,
but that should be ok, as it is a no-op if the dir already exists.
*** Submitted:
environs/config: ensure ~/.juju exists
When doing WriteEnviron we would create ~/.juju/ environments. yaml
but we weren't creating the containing dir. (Which meant actually
running 'juju init -w' wouldn't work for new users.)
This adds an unconditional MkdirAll() before writing environments.yaml,
but that should be ok, as it is a no-op if the dir already exists.
R=dfc, dimitern, rog /codereview. appspot. com/7759044
CC=
https:/
https:/ /codereview. appspot. com/7759044/