mirror of
https://github.com/kataras/iris.git
synced 2025-12-22 12:27:02 +00:00
Update to rc.2 | NEW: iris run main.go https://github.com/kataras/iris/issues/192
Not tested on linux yet,(I do not have a linux station now). Post an issue if iris run main.go doesnt works as expected
This commit is contained in:
@@ -2,7 +2,6 @@ package iriscontrol
|
||||
|
||||
import (
|
||||
"os"
|
||||
"runtime"
|
||||
|
||||
"github.com/kataras/iris"
|
||||
"github.com/kataras/iris/utils"
|
||||
@@ -20,15 +19,8 @@ var (
|
||||
|
||||
// init just sets the assetsPath & current workingDir
|
||||
func init() {
|
||||
homepath := ""
|
||||
if runtime.GOOS == "windows" {
|
||||
homepath = os.Getenv("HOMEDRIVE") + os.Getenv("HOMEPATH")
|
||||
} else {
|
||||
homepath = os.Getenv("HOME")
|
||||
}
|
||||
assetsPath = homepath + utils.PathSeparator + ".iris" + utils.PathSeparator + "iris-control-assets" + utils.PathSeparator
|
||||
|
||||
workingDir, _ = os.Getwd()
|
||||
assetsPath = utils.AssetsDirectory + utils.PathSeparator + "iris-control-assets" + utils.PathSeparator
|
||||
}
|
||||
|
||||
func installAssets() {
|
||||
|
||||
Reference in New Issue
Block a user