cpu[darwin]: move helper path to under the HOME dir.

pull/58/head
Shirou WAKAYAMA 10 years ago
parent c195d77ce3
commit cbe10d6761

@ -7,13 +7,14 @@ import (
"io" "io"
"os" "os"
"os/exec" "os/exec"
"path/filepath"
"strconv" "strconv"
"strings" "strings"
common "github.com/shirou/gopsutil/common" common "github.com/shirou/gopsutil/common"
) )
const HELPER_PATH = "/tmp/gopsutil_cpu_helper" var HELPER_PATH = filepath.Join(os.Getenv("HOME"), ".gopsutil_cpu_helper")
// enable cpu helper. It may become security problem. // enable cpu helper. It may become security problem.
// This env valiable approach will be changed. // This env valiable approach will be changed.

Loading…
Cancel
Save