summary refs log tree commit diff stats
path: root/compiler/nimconf.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-11-29 01:24:58 +0100
committerAraq <rumpf_a@web.de>2011-11-29 01:24:58 +0100
commite261a88d074038391574402e88737af4752a1041 (patch)
tree6dfbeb266de2f0b91f0a7f416d6538521ca0892f /compiler/nimconf.nim
parenta489161b1629b2b7347521c8ec67a0e5e812ef6a (diff)
downloadNim-e261a88d074038391574402e88737af4752a1041.tar.gz
further steps to get rid of deprecated endOfFile and readLine
Diffstat (limited to 'compiler/nimconf.nim')
-rwxr-xr-xcompiler/nimconf.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/nimconf.nim b/compiler/nimconf.nim
index 18bbe6cb4..fea22f86b 100755
--- a/compiler/nimconf.nim
+++ b/compiler/nimconf.nim
@@ -219,8 +219,8 @@ proc LoadConfigs*(cfg = "nimrod.cfg") =
   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/nimrod"
+    elif prefix == "/usr/local": libpath = "/usr/local/lib/nimrod"
     else: libpath = joinPath(prefix, "lib")
 
   if optSkipConfigFile notin gGlobalOptions: