mirror of
https://github.com/sbrow/ps.git
synced 2025-12-29 18:47:38 -05:00
updates
This commit is contained in:
14
ps.go
14
ps.go
@@ -15,16 +15,20 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
const (
|
||||
Cmd = "cscript.exe"
|
||||
Opts = "/nologo"
|
||||
)
|
||||
|
||||
var Cmd string
|
||||
var Opts string
|
||||
var pkgpath string
|
||||
|
||||
func init() {
|
||||
_, file, _, _ := runtime.Caller(0)
|
||||
pkgpath = path.Dir(file)
|
||||
switch runtime.GOOS {
|
||||
case "windows":
|
||||
Cmd = "cscript.exe"
|
||||
Opts = "/nologo"
|
||||
case "darwin":
|
||||
Cmd = "osacript"
|
||||
}
|
||||
}
|
||||
|
||||
// Open photoshop.
|
||||
|
||||
Reference in New Issue
Block a user