aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/bisect_flag.go
diff options
context:
space:
mode:
Diffstat (limited to 'compiler_wrapper/bisect_flag.go')
-rw-r--r--compiler_wrapper/bisect_flag.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler_wrapper/bisect_flag.go b/compiler_wrapper/bisect_flag.go
index f07d9a63..adfa8b03 100644
--- a/compiler_wrapper/bisect_flag.go
+++ b/compiler_wrapper/bisect_flag.go
@@ -7,6 +7,7 @@ package main
import (
"errors"
"os"
+ "os/exec"
"path/filepath"
)
@@ -52,7 +53,7 @@ func calcBisectCommand(env env, cfg *config, bisectStage string, compilerCmd *co
}
}
absCompilerPath := getAbsCmdPath(env, compilerCmd)
- pythonPath, err := filepath.Abs(os.Args[0])
+ pythonPath, err := exec.LookPath(os.Args[0])
if err != nil {
return nil, err
}