Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SWI Prolog change working directory/get current working directory?

Tags:

swi-prolog

in SWI Prolog terminal how do I view the current working directory and change the current working directory?

I found:

working_directory(CWD, CWD)

but I dont think its what I need

like image 664
mezamorphic Avatar asked Jul 24 '12 14:07

mezamorphic


1 Answers

To get the current working directory use working_directory(CWD, CWD).

To change the current working directory use working_directory(_, NewCWD).

Check here to see the manual entry for this predicate.

like image 52
gusbro Avatar answered Sep 19 '22 03:09

gusbro