index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
modules
/
base
/
conf.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Unknown <joe2010xtmf@163.com>
2014-05-06 16:28:52 -0400
committer
Unknown <joe2010xtmf@163.com>
2014-05-06 16:28:52 -0400
commit
8ca14e210959b9316a4eed6e127de1eb775fda74
(
patch
)
tree
93af1213d80c700838b1c41eb1c1c9ffcbfd60d6
/
modules/base/conf.go
parent
7cb5a15c9b7a2a118d756d15cb745743f207a318
(
diff
)
Improve delete SSH key
Diffstat
(limited to 'modules/base/conf.go')
-rw-r--r--
modules/base/conf.go
1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go
index cbd6532b..88085172 100644
--- a/
modules/base/conf.go
+++ b/
modules/base/conf.go
@@ -98,6 +98,7 @@ var Service struct {
LdapAuth bool
}
+// ExecDir returns absolute path execution(binary) path.
func ExecDir() (string, error) {
file, err := exec.LookPath(os.Args[0])
if err != nil {