summaryrefslogtreecommitdiff
path: root/pkg/machine/qemu/options_darwin.go
blob: 44093713122501c4f1701dab151cbbf518e47143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package qemu

import (
	"os"

	"github.com/pkg/errors"
)

func getRuntimeDir() (string, error) {
	tmpDir, ok := os.LookupEnv("TMPDIR")
	if !ok {
		return "", errors.New("unable to resolve TMPDIR")
	}
	return tmpDir, nil
}