質問

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