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/Scheme

asks 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

On Tuesday, July 5, 2016 at 4:52:46 AM UTC+5:30, linas wrote:
>
>
> On Mon, Jul 4, 2016 at 10:34 AM, Gaurav Gautam <[email protected] 
> <javascript:>> wrote:
>
>> (use-modules (opencog exec))
>
>
> There error message 
> mentions /home/gaurav/Codes/AI/OpenCog/WORKSPACE/AtomTypes/links.scm but 
> you did not say what it contains.
>
> --linas
>

-- 
You received this message because you are subscribed to the Google Groups 
"opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/opencog/6ea3f159-8e27-4e9c-98fd-8642b885f0ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to