I'll submit a version raising an exception. The absolute path approach does sound tempting. But it appears that checking the contents of /var/lib/juju/ is another indirect way of checking what version you have (if the agents is present juju-core else legacy) > charm dir is set in any hook, i'd consider raising an exception if its not > set. working dir feels very implicit. ie if in an unexpected place refuse > the temptation to guess. alternatively work out detection that's against an > absolute path. > > > On Fri, Apr 26, 2013 at 8:50 AM, Matthew Williams < >