mirror of
				https://github.com/v2fly/v2ray-core.git
				synced 2025-10-31 17:59:15 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			392 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			392 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // +build !windows
 | |
| 
 | |
| package platform
 | |
| 
 | |
| import (
 | |
| 	"os"
 | |
| 	"path/filepath"
 | |
| )
 | |
| 
 | |
| func ExpandEnv(s string) string {
 | |
| 	return os.ExpandEnv(s)
 | |
| }
 | |
| 
 | |
| func LineSeparator() string {
 | |
| 	return "\n"
 | |
| }
 | |
| 
 | |
| func GetToolLocation(file string) string {
 | |
| 	const name = "v2ray.location.tool"
 | |
| 	toolPath := EnvFlag{Name: name, AltName: NormalizeEnvName(name)}.GetValue(getExecutableDir)
 | |
| 	return filepath.Join(toolPath, file)
 | |
| }
 | 
