Skip to content

Commit

Permalink
add custom named argument 'check_for_sources' for Bundle constructor …
Browse files Browse the repository at this point in the history
…in Python 2+3 compatible way
  • Loading branch information
boegel authored Sep 5, 2023
1 parent 1db04ef commit b4c0270
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion easybuild/easyblocks/generic/bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ def extra_options(extra_vars=None):
})
return EasyBlock.extra_options(extra_vars)

def __init__(self, check_for_sources=True, *args, **kwargs):
def __init__(self, *args, **kwargs):
"""
Constructor for Bundle easyblock
"""
# add check_for_sources named argument in a Python 2+3 compatible way
check_for_sources = kwargs.get('check_for_sources', True)
"""Initialize easyblock."""
super(Bundle, self).__init__(*args, **kwargs)
self.altroot = None
Expand Down

0 comments on commit b4c0270

Please sign in to comment.