diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm index c0a7da171ec3d1b9a1d4c112dc77c70c53d849e1..00c4df7a3e51889fab218c4afdcdc1a378b58d20 100644 --- a/guix/scripts/environment.scm +++ b/guix/scripts/environment.scm @@ -200,7 +200,7 @@ (define (options/resolve-packages opts) (package-outputs package))))) (('load . file) ;; Add all the outputs of the package defined in FILE. - (let ((package (load (string-append (getcwd) "/" file)))) + (let ((package (load* file (make-user-module '())))) (map (lambda (output) `(package ,package ,output)) (package-outputs package))))