Updated so revel new works and revel run starts parsing the source.

This commit is contained in:
notzippy@gmail.com
2020-04-25 09:18:29 -07:00
parent acb8fb631b
commit 9a9511d28f
6 changed files with 97 additions and 101 deletions

View File

@@ -106,7 +106,9 @@ func updateRunConfig(c *model.CommandConfig, args []string) bool {
}
case 0:
// Attempt to set the import path to the current working director.
c.Run.ImportPath,_ = os.Getwd()
if c.Run.ImportPath=="" {
c.Run.ImportPath, _ = os.Getwd()
}
}
c.Index = model.RUN
return true