Skip to content

Commit 6034b20

Browse files
committed
Invert (correct) condition for using custom separator
1 parent c22540a commit 6034b20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easybuild/tools/module_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ def update_paths(self, key, paths, prepend=True, allow_abs=False, expand_relpath
10161016
else:
10171017
abspaths.append(path)
10181018

1019-
delim_opt = '' if delim != ':' else f' -d "{delim}"'
1019+
delim_opt = '' if delim == ':' else f' -d "{delim}"'
10201020
statements = [f'{update_type}-path{delim_opt}\t{key}\t\t{p}\n' for p in abspaths]
10211021
return ''.join(statements)
10221022

0 commit comments

Comments
 (0)