File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -87,22 +87,21 @@ def has_prefix(path, prefix):
87
87
# parse PATH to remove references to the build directory
88
88
if export ["variable" ] == "PATH" :
89
89
paths = [p for p in export ["paths" ] if not has_prefix (p , args .build_path )]
90
- lines .append (f"export PATH={ ':' .join (paths )} ;" )
90
+ lines .append (f"export PATH={ ':' .join (paths )} ;\n " )
91
91
92
92
# drop the SPACK_ENV variable
93
93
elif export ["variable" ] == "SPACK_ENV" :
94
94
pass
95
95
96
96
else :
97
- lines .append (line .strip ())
97
+ lines .append (line .strip ()+ " \n " )
98
98
else :
99
- lines .append (line .strip ())
99
+ lines .append (line .strip ()+ " \n " )
100
100
101
101
# Prepend the compiler paths to PATH
102
- lines .append ("# compiler paths added by stackinator" )
103
- lines .append (f"export PATH={ pathstring } :$PATH;" )
102
+ lines .append ("# compiler paths added by stackinator\n " )
103
+ lines .append (f"export PATH={ pathstring } :$PATH;\n " )
104
104
105
105
# Write a modified version of the activation script.
106
106
with open (args .activate_path , 'w' ) as fid :
107
107
fid .writelines (lines )
108
-
You can’t perform that action at this time.
0 commit comments