Copyright 2016 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

package os

import 

var executablePath string // set by ../runtime/os_darwin.go

var initCwd, initCwdErr = Getwd()

func () (string, error) {
	 := executablePath
	if len() == 0 {
		return , errors.New("cannot find executable path")
	}
	if [0] != '/' {
		if initCwdErr != nil {
			return , initCwdErr
		}
skip "./"
			 = [2:]
		}
		 = initCwd + "/" + 
	}
	return , nil