Commit 9754f37a authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

jupyter-server: Use 'call-with-input-file'.

* guix-kernel/jupyter-server.scm (get-argv-from-file): Use
'call-with-input-file' instead of 'open-file'.
parent 40be739b
......@@ -104,10 +104,8 @@
(cons (car argv)
(subsitute-conn-file (cdr argv))))))
(let* ((file (open-input-file kernel-file))
(hash (json->scm file))
(argv (hash-ref hash "argv")))
(close file)
(let* ((table (call-with-input-file kernel-file json->scm))
(argv (hash-ref table "argv")))
(subsitute-conn-file argv)))
(define search-path->list
......
Supports Markdown
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