1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-06 09:15:37 -05:00

use external config converter first, and then fallback to the internal one

This commit is contained in:
Darien Raymond
2017-11-11 22:29:00 +01:00
parent 901d13ca76
commit 268d7264e8
4 changed files with 63 additions and 10 deletions

View File

@@ -2,6 +2,8 @@
package platform
import "path/filepath"
func ExpandEnv(s string) string {
// TODO
return s
@@ -10,3 +12,9 @@ func ExpandEnv(s string) string {
func LineSeparator() string {
return "\r\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+".exe")
}