gocharm or harm.v5 how to get charm dir?
Vasiliy Tolstov
v.tolstov at selfip.ru
Tue Jun 2 12:41:36 UTC 2015
2015-06-01 21:54 GMT+03:00 Nate Finch <nate.finch at canonical.com>:
> Hooks and actions all fire with the root of the charmdir as the current
> directory, so in general, you don't need to get it, you're already there.
>
> For example, if your charm has <charmdir>/assets/foo.jpg ... you can just
> do
>
> f, err := os.Open("assets/foo.jpg")
>
> and it'll work correctly.
I know that, thanks.
--
Vasiliy Tolstov,
e-mail: v.tolstov at selfip.ru
More information about the Juju
mailing list