summary refs log tree commit diff stats
path: root/compiler/nimconf.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-08-29 09:03:00 +0200
committerAraq <rumpf_a@web.de>2014-08-29 09:03:00 +0200
commitcd2c6128d1df471830ea7f842b57aa32aee5deab (patch)
tree47270f291b54bdb2e9bd66e40b9628968a1e1260 /compiler/nimconf.nim
parent0f4567d59e8d0910be344babeef1b5a62f410b14 (diff)
downloadNim-cd2c6128d1df471830ea7f842b57aa32aee5deab.tar.gz
renamed babelcmd to nimblecmd; config files are now nim.cfg; other renamings
Diffstat (limited to 'compiler/nimconf.nim')
-rw-r--r--compiler/nimconf.nim9
1 files changed, 5 insertions, 4 deletions
diff --git a/compiler/nimconf.nim b/compiler/nimconf.nim
index d23c7f1be..98fe831d3 100644
--- a/compiler/nimconf.nim
+++ b/compiler/nimconf.nim
@@ -224,8 +224,8 @@ proc loadConfigs*(cfg: string) =
   if libpath == "": 
     # choose default libpath:
     var prefix = getPrefixDir()
-    if prefix == "/usr": libpath = "/usr/lib/nimrod"
-    elif prefix == "/usr/local": libpath = "/usr/local/lib/nimrod"
+    if prefix == "/usr": libpath = "/usr/lib/nim"
+    elif prefix == "/usr/local": libpath = "/usr/local/lib/nim"
     else: libpath = joinPath(prefix, "lib")
 
   if optSkipConfigFile notin gGlobalOptions:
@@ -244,5 +244,6 @@ proc loadConfigs*(cfg: string) =
     
     if gProjectName.len != 0:
       # new project wide config file:
-      readConfigFile(changeFileExt(gProjectFull, "nimrod.cfg"))
- 
+      let projectConfig = changeFileExt(gProjectFull, "nim.cfg")
+      if fileExists(projectConfig): readConfigFile(projectConfig)
+      else: readConfigFile(changeFileExt(gProjectFull, "nimrod.cfg"))