use GOPATH variable for base directory

This commit is contained in:
Tymat 2014-03-11 01:56:19 -04:00
parent fbd53f0e34
commit 51985ac710
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import (
"path" "path"
"path/filepath" "path/filepath"
"runtime" "runtime"
"os"
) )
// UI Library that has some basic functionality exposed // UI Library that has some basic functionality exposed
@ -54,7 +55,7 @@ func AssetPath(p string) string {
// Get Binary Directory // Get Binary Directory
exedir, _ := osext.ExecutableFolder() exedir, _ := osext.ExecutableFolder()
base = filepath.Join(exedir, "../Resources") base = filepath.Join(exedir, "../Resources")
base = "/Users/jeffrey/go/src/github.com/ethereum/go-ethereum" base = os.Getenv("GOPATH") + "/src/github.com/ethereum/go-ethereum"
case "linux": case "linux":
base = "/usr/share/ethereal" base = "/usr/share/ethereal"
case "window": case "window":