ui: Remove the empty string from '%load-extensions'.

* guix/ui.scm (run-guix): Set %LOAD-EXTENSIONS.
This commit is contained in:
Ludovic Courtès 2017-06-15 21:58:17 +02:00 committed by Ludovic Courtès
parent 7ebc6cf869
commit cbee955901
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -1326,6 +1326,10 @@ Unlike 'guix-main', this procedure assumes that locale, i18n support,
and signal handling has already been set up."
(define option? (cut string-prefix? "-" <>))
;; The default %LOAD-EXTENSIONS includes the empty string, which doubles the
;; number of 'stat' calls per entry in %LOAD-PATH. Shamelessly remove it.
(set! %load-extensions '(".scm"))
(match args
(()
(format (current-error-port)