1
# Sync the charmhelpers accross all the charms that we have
2
# Note that this only works if there is a charm-helpers-hooks.yaml in the
9
CHARM_PREFIX = "./charms/"
13
top_level_dirs = sorted(os.walk(CHARM_PREFIX).next()[1])
14
for d in top_level_dirs:
15
p = os.path.join(".", "charms", d)
16
f = os.path.join(p, "charm-helpers-hooks.yaml")
17
if os.path.isfile(os.path.join(f)):
18
cmd = "make sync".format(p)
20
subprocess.check_call(cmd.split(" "), cwd=p)
27
if __name__ == '__main__':