hwinfo-streamdeck/examples/bench/main.go

15 lines
208 B
Go
Raw Normal View History

2023-10-31 20:16:41 -04:00
package main
import (
"fmt"
"os"
"path/filepath"
"runtime"
)
func main() {
_, filename, _, _ := runtime.Caller(0)
fmt.Println("Current test filename: " + filename)
os.Chdir(filepath.Dir(filename))
}