This commit is contained in:
刘河
2019-02-16 23:18:58 +08:00
parent 3b18d66835
commit 7a8cb3d5b6
14 changed files with 243 additions and 217 deletions

View File

@@ -12,7 +12,7 @@ import (
func GetRunPath() string {
var path string
if path = GetInstallPath(); !FileExists(path) {
return "./"
return GetAppPath()
}
return path
}
@@ -48,7 +48,7 @@ func IsWindows() bool {
func GetLogPath() string {
var path string
if IsWindows() {
path = "./"
path = GetAppPath()
} else {
path = "/tmp"
}
@@ -59,7 +59,7 @@ func GetLogPath() string {
func GetTmpPath() string {
var path string
if IsWindows() {
path = GetRunPath()
path = GetAppPath()
} else {
path = "/tmp"
}