Skip to content

Commit

Permalink
Remove hooks as class variable in EdaFlow
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed Jun 23, 2022
1 parent 4e3cef6 commit 40be77f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edalize/flows/edaflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ def merge_edam(a, b):

def add_scripts(self, depends, hook_name):
last_script = depends
for script in self.hooks.get(hook_name, []):
hooks = self.edam.get("hooks", {})
for script in hooks.get(hook_name, []):

# _env = self.env.copy()
# if 'env' in script:
Expand All @@ -202,7 +203,6 @@ def add_scripts(self, depends, hook_name):

def __init__(self, edam, work_root, verbose=False):
self.edam = edam
self.hooks = edam.get("hooks", {})

# Extract all options that affects the flow rather than
# just a single tool
Expand Down

0 comments on commit 40be77f

Please sign in to comment.