zimoun <zimon.touto...@gmail.com> writes:

> For instance, this ’hello’ extension reads:
>
> $ GUIX_EXTENSIONS_PATH=/tmp/example/guix/extensions guix hello
> hello
> path: "/tmp/example/my"
> load-path: 
>   "/tmp/example/my"

This is not correct.  It should be /tmp/example.

> I have tried
>
>     (apply (@ (my top) from-top))

…and then this will work.

> (define (my-path)
>   (canonicalize-path
>    (string-append (dirname (current-filename)) "/../../my")))

The problem lies right here.  Remove the trailing “my”.

Works for me with these changes.  What doesn’t work is

    (use-modules (my top))
    (from-top)

but

    ((@ (my top) from-top))

works fine.

-- 
Ricardo

Reply via email to