Files
VRCWT-OSC/VRWT_Tool/VRC_OSC/internal/common/project_paths.go
every_holiday 72aa10de46
Some checks failed
build-windows-exe / build (push) Failing after 48s
Refine Go runtime behavior and log handling
2026-06-24 01:53:24 +09:00

17 lines
223 B
Go

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