Re: How to correctly load modules from runtime defineable locations?

2020-03-06 Thread Zelphir Kaltstahl
Hi! I don't know about other ways, but using the -L argument, you can run Guile programs from anywhere, because it will have the effect of making it look to Guile as if it was started from that -L specified path. Using `add-to-load-path` would be in your code, but usually I think one should prefe

Re: YAML parser?

2020-03-06 Thread Aleix Conchillo Flaqué
On Wed, Mar 4, 2020 at 6:22 AM Matt Wette wrote: > On 2/23/20 7:29 AM, Matt Wette wrote: > > On 2/21/20 8:12 PM, Aleix Conchillo Flaqué wrote: > >> Hi, > >> > >> does anyone know if there's any YAML parser for Guile? Haven't been > >> able to > >> find any. > >> > >> Thanks! > >> > >> Aleix > > >

Re: How to correctly load modules from runtime defineable locations?

2020-03-06 Thread Михаил Бахтерев
Thanks for the detailed answer. When i run guile -L lib bin/check.scm everything works fine. No warnings. But my problem is that client wants just to unpack code archive to the random location and run it from there. Unfortunately, no GUIX, no custom builds. I don't understand what is the diff

Re: How to correctly load modules from runtime defineable locations?

2020-03-06 Thread Zelphir Kaltstahl
Hi! I am not sure this will help you, but here is what I observed and what works best for me: * For running Guile programs use: `guile -L `. * For using libraries: o If Guile is installed via GUIX, try to install the library through GUIX as well, then it should be available