bump last resort check out of ifelse

release/1.0.1
Taylor Gerring 10 years ago
parent d90b71bc55
commit a39c73672e
  1. 3
      ethutil/common.go

@ -36,13 +36,14 @@ func DefaultAssetPath() string {
default: default:
assetPath = "." assetPath = "."
} }
}
// Check if the assetPath exists. If not, try the source directory // Check if the assetPath exists. If not, try the source directory
// This happens when binary is run from outside cmd/mist directory // This happens when binary is run from outside cmd/mist directory
if _, err := os.Stat(assetPath); os.IsNotExist(err) { if _, err := os.Stat(assetPath); os.IsNotExist(err) {
assetPath = path.Join(srcdir, "assets") assetPath = path.Join(srcdir, "assets")
} }
}
return assetPath return assetPath
} }

Loading…
Cancel
Save