def hook_setup(parent, hook_fpath):
hook = copy.deepcopy(HOOK)<EOL>hook["<STR_LIT:name>"] = os.path.splitext(os.path.basename(hook_fpath))[<NUM_LIT:0>]<EOL>hook["<STR_LIT:name>"] = hook["<STR_LIT:name>"].replace("<STR_LIT>", "<STR_LIT>").replace("<STR_LIT>", "<STR_LIT>")<EOL>hook["<STR_LIT>"] = parent["<STR_LIT>"]<EOL>hook["<STR_LIT>"] = hook_fpath<EOL>hook["<STR_LIT>"] = "<STR_LIT>" % os.path.basename(hook["<STR_LIT>"])<EOL>hook["<STR_LIT>"] = os.sep.join([hook["<STR_LIT>"], hook["<STR_LIT>"]])<EOL>hook["<STR_LIT>"] = os.sep.join([<EOL>hook["<STR_LIT>"],<EOL>"<STR_LIT>" % hook["<STR_LIT>"]<EOL>])<EOL>hook["<STR_LIT>"].update(copy.deepcopy(parent["<STR_LIT>"]))<EOL>shutil.copyfile(hook["<STR_LIT>"], hook["<STR_LIT>"])<EOL>return hook<EOL>
Setup hook