File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 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):
8787 # parse PATH to remove references to the build directory
8888 if export ["variable" ] == "PATH" :
8989 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 " )
9191
9292 # drop the SPACK_ENV variable
9393 elif export ["variable" ] == "SPACK_ENV" :
9494 pass
9595
9696 else :
97- lines .append (line .strip ())
97+ lines .append (line .strip ()+ " \n " )
9898 else :
99- lines .append (line .strip ())
99+ lines .append (line .strip ()+ " \n " )
100100
101101# 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 " )
104104
105105# Write a modified version of the activation script.
106106with open (args .activate_path , 'w' ) as fid :
107107 fid .writelines (lines )
108-
You can’t perform that action at this time.
0 commit comments