Вопрос

I want to set the default folder for programs in swi-prolog. I have noticed that I can change the personalization file '.plrc' in my home folder but I do not know the rules to edit this file.

Это было полезно?

Решение

Add to your .swiplrc file (.plrc file in old SWI-Prolog versions) an initialization/1 directive with a goal that changes the current directory to whatever you want. For example:

:- initialization(cd('$HOME/my_fancy_prolog_project')).
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top