]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/mathql_test/mqitop.ml
native support for reference shells added to mqgtop
[helm.git] / helm / mathql_test / mqitop.ml
index 4d45740cf2a7c68acb80324b769e12d4c9f14f14..0172472201a23fbae1380e0b1ef9765f242a019c 100644 (file)
@@ -36,11 +36,12 @@ module C = MQIConn
 module F = MQueryIO
 
 let _ =
+   Helm_registry.load_from "/home/fguidi/miohelm/gTopLevel.conf.xml";
    let t = P.start_time () in
    let ich = Lexing.from_channel stdin in
    let flags = if Array.length Sys.argv >= 2 then Sys.argv.(1) else "" in
    let log s = print_string s; flush stdout in
-   let handle = C.init (C.flags_of_string flags) log in 
+   let handle = C.init_if_connected (C.flags_of_string flags) log in 
    if not (C.connected handle) then begin  
        print_endline "mqitop: no connection"; flush stdout
    end;