Multiple initialization files

I would like to have 2 initialization files:
one for setting the print depth
one for loading my utility routines

specifying multiple -f args did not seem to work.


:- [print_settings].
:- [utility_routines].

Create and how you want them. Load all like

swipl -f
1 Like

For local projects, note that the commandline is swipl … , i.e., you can give multiple Prolog files to start. So, e.g. you can use this to load your application with debug settings by writing a file that holds the appropriate settings.


Maybe we should add something that allows for using the search paths, so you can do e.g.


As is, you can use -g 'use_module(library(lists))', but that is not very friendly in scripts :frowning: