Reputation: 103
Using the predicate working_directory(CWD, 'new/WD/folder')
change your current working directory for the whole time of the current session. What I need is to change it permanentely. I tried using the predicate cd/1 , I tried editing the swipl.ini file inserting the working_directory predicate in it but nothing seems to work. I don't know if I am placing the.ini file in the wrong folder or if the statements in it are not correct. Is it even possible to achieve such result? thanks.
Upvotes: 4
Views: 2176
Reputation: 18683
Add to the SWI-Prolog initialization file (swipl.ini
on Windows; .swiplrc
on POSIX systems) the directive:
:- working_directory(_, 'new/WD/folder').
Upvotes: 3