Logtalk reference manual
Built-in predicate: logtalk_library_path/2

logtalk_library_path/2

Description

logtalk_library_path(Library, Path)

Dynamic, user-defined predicate, allowing the declaration of aliases to library paths. Library aliases may also be used on the second argument (using the notation alias(path)). Paths must always end with the path directory separator character ("/").

Template and modes

logtalk_library_path(?atom, -atom)
logtalk_library_path(?atom, -compound)

Errors

(none)

Examples

| ?- logtalk_library_path(viewpoints, Path).

Path = examples('viewpoints/')
yes

| ?- logtalk_library_path(Library, Path).

Library = lgtuser
Path = '$LOGTALKUSER/' ;

Library = library
Path = lgtuser('library/') ;

Library = examples
Path = lgtuser('examples/') ;

Library = viewpoints
Path = examples('viewpoints/')
yes