Hello Linas,
So I did something and now I can run the cog-execute! function. However, I don't understand what I did or how it
worked. I need a little help in understanding what I did.
The wiki page:
http://wiki.opencog.org/wikihome/index.php/Schemeasks us to add this boilerplate code to the guile scripts:
scheme@(guile-user)> (use-modules (ice-9 readline)) (activate-readline)
scheme@(guile-user)> (add-to-load-path "/usr/local/share/opencog/scm")
scheme@(guile-user)> (add-to-load-path ".")
scheme@(guile-user)> (use-modules (opencog))
scheme@(guile-user)> (use-modules (opencog query))
scheme@(guile-user)> (use-modules (opencog exec))
scheme@(guile-user)> (load-from-path "opencog.scm")
After adding some (display "Message") statements in opencog/query.scm and opencog/exec.scm I noticed that
these were not getting executed. So I added two more lines to the boilerplate code:
(load-from-path "opencog/exec.scm)
(load-from-path "opencog/query.scm")
Is this normal? Are we supposed to load a scheme module using a combination of use-modules and load-from-path?
I don't understand what load-from-path is doing. I have tried to google this but I always end up in the GNU manuals and
they are quite cryptic about this.
Yours sincerely
Gaurav Gautam