aboutsummaryrefslogtreecommitdiff
path: root/ide
diff options
context:
space:
mode:
Diffstat (limited to 'ide')
-rw-r--r--ide/coq.ml4
-rw-r--r--ide/ideutils.ml5
2 files changed, 3 insertions, 6 deletions
diff --git a/ide/coq.ml b/ide/coq.ml
index 809c502e7e..c605072515 100644
--- a/ide/coq.ml
+++ b/ide/coq.ml
@@ -58,7 +58,7 @@ let get_version_date () =
then Coq_config.date
else "<date not printable>" in
try
- let ch = open_in (Coq_config.coqtop^"/revision") in
+ let ch = open_in (Coq_config.coqsrc^"/revision") in
let ver = input_line ch in
let rev = input_line ch in
(ver,rev)
@@ -88,7 +88,7 @@ let is_in_coq_lib dir =
List.exists
(fun s ->
let fdir =
- Filename.concat Coq_config.coqlib (Filename.concat "theories" s) in
+ Filename.concat (Envars.coqlib ()) (Filename.concat "theories" s) in
prerr_endline (" Comparing to: "^fdir);
if is_same_file fdir then (prerr_endline " YES";true)
else (prerr_endline"NO";false))
diff --git a/ide/ideutils.ml b/ide/ideutils.ml
index 5295f273e5..be765922cd 100644
--- a/ide/ideutils.ml
+++ b/ide/ideutils.ml
@@ -33,10 +33,7 @@ let prerr_string s =
if !debug then (prerr_string s;flush stderr)
let lib_ide_file f =
- let coqlib =
- System.getenv_else "COQLIB"
- (if Coq_config.local || !Flags.boot then Coq_config.coqtop
- else Coq_config.coqlib) in
+ let coqlib = Envars.coqlib () in
Filename.concat (Filename.concat coqlib "ide") f
let get_insert input_buffer = input_buffer#get_iter_at_mark `INSERT