Files
VRCWT-OSC/internal/common/project_paths.go
2026-06-25 02:36:55 +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() }