Skip to content

Commit 6448696

Browse files
committed
Fixed 'local variable 'easyconf_name_with_eb' referenced before assignment' that one would get if the easystack file already included .eb extensions
1 parent 56e3bfc commit 6448696

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

easybuild/framework/easystack.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ def parse_by_easyconfigs(filepath, easyconfigs, easybuild_version=None, robot=Fa
176176
# Add easyconfig name to the list
177177
if not easyconf_name.endswith('.eb'):
178178
easyconf_name_with_eb = easyconf_name + '.eb'
179+
else:
180+
easyconf_name_with_eb = easyconf_name
179181
easystack.easyconfigs.append(easyconf_name_with_eb)
180182
# Add options to the ec_opts dict
181183
if 'options' in easyconfig[easyconf_name].keys():

0 commit comments

Comments
 (0)