1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 12:57:05 +00:00
This commit is contained in:
Makis Maropoulos
2016-06-17 19:51:17 +03:00
parent 6544863edc
commit 5d369b7c73
4 changed files with 37 additions and 10 deletions

View File

@@ -15,9 +15,10 @@ var (
assetsURL = "https://github.com/iris-contrib/iris-control-assets/archive/master.zip"
assetsUnzipname = "iris-control-assets"
assetsPath = ""
workingDir = ""
)
// init just sets the assetsPath
// init just sets the assetsPath & current workingDir
func init() {
homepath := ""
if runtime.GOOS == "windows" {
@@ -26,6 +27,8 @@ func init() {
homepath = os.Getenv("HOME")
}
assetsPath = homepath + utils.PathSeparator + ".iris" + utils.PathSeparator + "iris-control-assets" + utils.PathSeparator
workingDir, _ = os.Getwd()
}
func installAssets() {