Simplify prefix a bit

This commit is contained in:
Anthony Sottile 2018-01-13 15:53:22 -08:00
parent 06ee69b3cc
commit 8fb644e7c0
3 changed files with 15 additions and 34 deletions

View file

@ -12,5 +12,5 @@ install_environment = helpers.no_install
def run_hook(prefix, hook, file_args):
cmd = helpers.to_cmd(hook)
cmd = (prefix.prefix_dir + cmd[0],) + cmd[1:]
cmd = (prefix.path(cmd[0]),) + cmd[1:]
return xargs(cmd, file_args)