Skip to content

Commit

Permalink
fix: ProcInfo dir
Browse files Browse the repository at this point in the history
  • Loading branch information
miaoyin committed Nov 9, 2023
1 parent c5333a0 commit dfc858c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions oss/proc_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ type ProcInfo struct {

func NewProcInfo() *ProcInfo {
var (
path = os.Args[0]
name = filepath.Base(path)
dir = filepath.Dir(path)
path, _ = os.Executable()
name = filepath.Base(path)
dir = filepath.Dir(path)
)

return &ProcInfo{
Expand Down

0 comments on commit dfc858c

Please sign in to comment.