// Copyright 2014 The Gogs Authors. All rights reserved.// Use of this source code is governed by a MIT-style// license that can be found in the LICENSE file.packagebaseimport("os""os/exec""path/filepath")constDOC_URL="https://github.com/gogits/go-gogs-client/wiki"type(TplNamestring)varGoGetMetas=make(map[string]bool)// ExecPath returns the executable path.funcExecPath()(string,error){file,err:=exec.LookPath(os.Args[0])iferr!=nil{return"",err}p,err:=filepath.Abs(file)iferr!=nil{return"",err}returnp,nil}