'spack compiler add' resolves relative path to absolute path (#11792)
Fixes #11782 Spack was not properly resolving relative paths to absolute paths when a relative path was passed to "spack compiler add [PATH]". Now, if provided a relative path, the absolute path is written to compilers.yaml rather than the relative path.
This commit is contained in:
		
				
					committed by
					
						
						Peter Scheibel
					
				
			
			
				
	
			
			
			
						parent
						
							d01d79eb5d
						
					
				
				
					commit
					76f1ee5f32
				
			@@ -1443,6 +1443,7 @@ def search_paths_for_executables(*path_hints):
 | 
				
			|||||||
        if not os.path.isdir(path):
 | 
					        if not os.path.isdir(path):
 | 
				
			||||||
            continue
 | 
					            continue
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        path = os.path.abspath(path)
 | 
				
			||||||
        executable_paths.append(path)
 | 
					        executable_paths.append(path)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        bin_dir = os.path.join(path, 'bin')
 | 
					        bin_dir = os.path.join(path, 'bin')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user