Home | History | Annotate | Download | only in Go

Lines Matching full:path

9 def find_executable(executable, path=None):
10 if path is None:
11 path = os.environ['PATH']
12 paths = path.split(os.pathsep)
13 base, ext = os.path.splitext(executable)
18 if not os.path.isfile(executable):
20 f = os.path.join(p, executable)
21 if os.path.isfile(f):
39 path = find_executable(args[0])
42 if path.endswith('/cc') and os.readlink(path) == 'clang':
43 args[0] = path[:len(path)-2] + 'clang'
48 if path.endswith('/c++') and os.readlink(path) == 'clang++':
49 args[0] = path[:len(path)-3] + 'clang++'