Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Guix Cuirass
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Panda
Guix Cuirass
Commits
297b2919
Commit
297b2919
authored
7 years ago
by
Ludovic Courtès
Browse files
Options
Downloads
Patches
Plain Diff
evaluate: Change '%load-path' once and for all.
* bin/evaluate.in (main): Do not restore the original '%load-path'.
parent
c2298d44
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/evaluate.in
+5
-8
5 additions, 8 deletions
bin/evaluate.in
with
5 additions
and
8 deletions
bin/evaluate.in
+
5
−
8
View file @
297b2919
...
...
@@ -58,17 +58,14 @@ exec ${GUILE:-@GUILE@} --no-auto-compile -e main -s "$0" "$@"
;; file names work as expected.
(
chdir
source
)
;; Change '%load-path' once and for all. We need it to be effective
;; both when we load SPEC's #:file and when we later call the thunks.
(
set!
%load-path
(
append
load-path
%load-path
))
(
save-module-excursion
(
lambda
()
(
set-current-module
%user-module
)
(
let
((
original-path
%load-path
))
(
dynamic-wind
(
lambda
()
(
set!
%load-path
(
append
load-path
original-path
)))
(
lambda
()
(
primitive-load
(
assq-ref
spec
#
:file
)))
(
lambda
()
(
set!
%load-path
original-path
))))))
(
primitive-load
(
assq-ref
spec
#
:file
))))
;; From there on we can access Guix modules.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment