storj/internal/testplanet/dir.go

21 lines
320 B
Go
Raw Normal View History

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information
package testplanet
import (
"runtime"
"strings"
)
var developmentRoot string
func init() {
_, filename, _, ok := runtime.Caller(0)
if !ok {
return
}
developmentRoot = strings.TrimSuffix(filename, "/internal/testplanet/dir.go")
}