From: Stefano Zacchiroli Date: Fri, 4 Nov 2005 09:33:00 +0000 (+0000) Subject: added tilde_expansion of directory settings X-Git-Tag: V_0_7_2_3~140 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=657a64ff42cfc0f4821ba47d2ee9bbbe5b41c74d;p=helm.git added tilde_expansion of directory settings --- diff --git a/helm/ocaml/getter/http_getter.ml b/helm/ocaml/getter/http_getter.ml index 3fe39a406..191117a20 100644 --- a/helm/ocaml/getter/http_getter.ml +++ b/helm/ocaml/getter/http_getter.ml @@ -346,7 +346,13 @@ let getxml' uri = getxml (UriManager.string_of_uri uri) let resolve' uri = resolve (UriManager.string_of_uri uri) let exists' uri = exists (UriManager.string_of_uri uri) +let tilde_expand_key k = + try + Helm_registry.set k (HExtlib.tilde_expand (Helm_registry.get k)) + with Helm_registry.Key_not_found _ -> () + let init () = + List.iter tilde_expand_key ["getter.cache_dir"; "getter.dtd_dir"]; Http_getter_logger.set_log_level (Helm_registry.get_opt_default Helm_registry.int ~default:1 "getter.log_level");