Commit f9003a4b authored by Andrei Paskevich's avatar Andrei Paskevich

rename WHY_CONFIG to WHY3CONFIG

also, never look for a config file in the current directory.
One should use WHY3CONFIG or -C for non-default configs.
parent b41ff2d3
......@@ -189,9 +189,7 @@ let load_main dirname section =
let read_config_rc conf_file =
let filename = match conf_file with
| Some filename -> filename
| None -> begin try Sys.getenv "WHY_CONFIG" with Not_found ->
if Sys.file_exists "why.conf" then "why.conf" else
if Sys.file_exists ".why.conf" then ".why.conf" else
| None -> begin try Sys.getenv "WHY3CONFIG" with Not_found ->
if Sys.file_exists default_conf_file then default_conf_file
else raise Exit
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment