Re: Help evaluating in the context of another module

2025-02-23 Thread Arun Isaac
Hi Nicolas, > (save-module-excursion > (lambda () > (set-current-module (resolve-module '(guix scripts pull))) > (reload-module (current-module)) > (display %options))) Sorry, my answer wasn't very helpful. I guess it refers to %options from the top level rather than from (guix sc

Re: Help evaluating in the context of another module

2025-02-21 Thread Nicolas Graves
On 2025-02-20 20:46, Arun Isaac wrote: > Hi Nicolas, > > How about the following? > > (save-module-excursion > (lambda () >(set-current-module (resolve-module '(guix scripts pull))) >(your-code-here))) Hi Arun, thanks for your answer, doesn't seem to help though. This snippet displays %

Re: Help evaluating in the context of another module

2025-02-20 Thread Arun Isaac
Hi Nicolas, How about the following? (save-module-excursion (lambda () (set-current-module (resolve-module '(guix scripts pull))) (your-code-here))) Regards, Arun