Refine Go runtime behavior and log handling
Some checks failed
build-windows-exe / build (push) Failing after 48s

This commit is contained in:
every_holiday
2026-06-24 01:53:24 +09:00
parent b34c2fafb4
commit 72aa10de46
10 changed files with 891 additions and 3 deletions

View File

@@ -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() }