Not sure why I had this here, as `/bin/sh` will find the first spack in `PATH` just like `env`. - [x] remove `/usr/bin/env` and avoid an extra process launch. Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
		
			
				
	
	
		
			26 lines
		
	
	
		
			731 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			731 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
#
 | 
						|
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
 | 
						|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
 | 
						|
#
 | 
						|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
 | 
						|
 | 
						|
#
 | 
						|
# spack-python
 | 
						|
#
 | 
						|
# If you want to write your own executable Python script that uses Spack
 | 
						|
# modules, on Mac OS or maybe some others, you may be able to do it like
 | 
						|
# this:
 | 
						|
#
 | 
						|
#   #!/usr/bin/env spack python
 | 
						|
#
 | 
						|
# Mac OS supports the above syntax, but it's not standard and most Linuxes
 | 
						|
# don't support more than one argument after the shebang command.  This
 | 
						|
# script is a workaround. Do this in your Python script instead:
 | 
						|
#
 | 
						|
#   #!/usr/bin/env spack-python
 | 
						|
#
 | 
						|
# This is compatible across platforms.
 | 
						|
#
 | 
						|
exec spack python "$@"
 |