let already_configured s l =
List.for_all (fun item -> List.exists (fun x -> x = item) l) s
-let tilde_expand_key k =
- try
- Helm_registry.set k (HExtlib.tilde_expand (Helm_registry.get k))
- with Helm_registry.Key_not_found _ -> ()
-
let load_configuration init_status =
if not (already_configured [ConfigurationFile] init_status) then
begin
let login = (Unix.getpwuid (Unix.getuid ())).Unix.pw_name in
Helm_registry.set "user.name" login
end;
- tilde_expand_key "matita.basedir";
- if Helm_registry.get_bool "matita.system" then begin
- prerr_endline "SISTEMA";
+ if Helm_registry.get_bool "matita.system" then
Helm_registry.set "user.home" BuildTimeConf.runtime_base_dir;
- end;
- tilde_expand_key "user.home";
ConfigurationFile::init_status
end
else