Use Hook api in languages

This commit is contained in:
Anthony Sottile 2018-12-31 13:16:48 -08:00
parent 5f9a667470
commit b59d7197ff
18 changed files with 41 additions and 38 deletions

View file

@ -78,6 +78,6 @@ def install_environment(prefix, version, additional_dependencies):
rmtree(pkgdir)
def run_hook(prefix, hook, file_args):
with in_env(prefix):
def run_hook(hook, file_args):
with in_env(hook.prefix):
return helpers.run_xargs(hook, helpers.to_cmd(hook), file_args)