2015-06-01 21:54 GMT+03:00 Nate Finch <nate.fi...@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.tols...@selfip.ru

-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to