aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFredrik Salomonsson <plattfot@posteo.net>2021-01-27 14:12:57 -0800
committerFredrik Salomonsson <plattfot@posteo.net>2021-01-27 14:12:57 -0800
commitde1869ee35e316d4425107b1048ecbd637651010 (patch)
treed722956a668c8c405252a3b9eda4e8cf7b2416d6 /scripts
parent61029b7c3d222ce67c6064c0197a7ad656c00c78 (diff)
downloadpinentry-rofi-de1869ee35e316d4425107b1048ecbd637651010.tar.gz
Add search paths to guile's module and object dir
Feedback from Ludovic Courtès when adding a package definition of pinentry-rofi to guix.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/pinentry-rofi.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/pinentry-rofi.in b/scripts/pinentry-rofi.in
index 9813a3d..60c1e79 100644
--- a/scripts/pinentry-rofi.in
+++ b/scripts/pinentry-rofi.in
@@ -23,6 +23,10 @@
;; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
;; THE SOFTWARE.
+(eval-when (load expand eval)
+ (set! %load-path (cons "@guilemoduledir@" %load-path))
+ (set! %load-compiled-path (cons "@guileobjectdir@" %load-compiled-path)))
+
(use-modules (ice-9 getopt-long)
(ice-9 format)
(pinentry-rofi))