nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89c4acb
)
loader/ini: the project name is `project.name` not just `name`
author
Jean Privat
<jean@pryen.org>
Thu, 27 Aug 2015 17:42:46 +0000
(13:42 -0400)
committer
Jean Privat
<jean@pryen.org>
Thu, 27 Aug 2015 19:51:34 +0000
(15:51 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
src/loader.nit
patch
|
blob
|
history
diff --git
a/src/loader.nit
b/src/loader.nit
index
56d0164
..
ae0315e
100644
(file)
--- a/
src/loader.nit
+++ b/
src/loader.nit
@@
-446,7
+446,8
@@
redef class ModelBuilder
var mgroup
if parent == null then
# no parent, thus new project
- if ini != null and ini.has_key("name") then pn = ini["name"]
+ var namekey = "project.name"
+ if ini != null and ini.has_key(namekey) then pn = ini[namekey]
var mproject = new MProject(pn, model)
mgroup = new MGroup(pn, mproject, null) # same name for the root group
mproject.root = mgroup