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.
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.
Write main_init_file.pl:
:- [print_settings].
:- [utility_routines].
Create print_settings.pl and utility_routines.pl how you want them. Load all like
swipl -f main_init_file.pl
For local projects, note that the commandline is swipl file.pl … , 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 debug.pl that holds the appropriate settings.
swipl debug.pl load.pl
Maybe we should add something that allows for using the search paths, so you can do e.g.
swipl library:lists.pl
As is, you can use -g 'use_module(library(lists))'
, but that is not very friendly in scripts