Fix GUI instance counts and launcher tmp paths
This commit is contained in:
1 parent
23d5fcfcda
commit
75f2d8b9c2
24 files changed
+2479
-20
No files matched your search
@@ -0,0 +1,16 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
func RuntimeBaseDir() string {
|
||||
exe, err := os.Executable()
|
||||
if err == nil {
|
||||
return filepath.Dir(exe)
|
||||
}
|
||||
return "."
|
||||
}
|
||||
|
||||
func RootDir() string { return RuntimeBaseDir() }
|
||||
Reference in new issue
Block a user