Hi,
from
https://www.swi-prolog.org/FAQ/PlInitialisation.html:
On Windows it is the directory provided by win_folder/2 on local_appdata
.
These files are available using the file_search_path/2 alias user_app_config
?- file_search_path(user_app_config,A).
A = ‘C:/Users/bw1kang0/AppData/Roaming/swi-prolog’.
?- win_folder(local_appdata,F).
F = ‘C:/Users/bw1kang0/AppData/Local’. ← wrong
It must be appdata instead of local_appdata:
?- win_folder(appdata,A).
A = ‘C:/Users/bw1kang0/AppData/Roaming’.
Regards