r2 - 07 Jan 2003 - 16:31:05 - JanWielemakerYou are here: TWiki >  FAQ Web  > PlInitialisation

Site and personal initialisation

Upon initialisation, SWI-Prolog reads both site initialisation and personal initialisation files. Both can be controlled explicitely using commandline options ( -F base for site- and -f base for personal initialisation).

The site-initialisation file is located in the SWI-Prolog home directory. Its name is deduced from the commandname by taking the leading alphanumerical characters, followed by the extension .rc. Using default installation this implies pl.rc for the Unix version and plwin.rc for the Windows version.

Note that XPCE is bound to SWI-Prolog by adding this file.

The personal initialisation file is called .plrc on Unix and pl.ini on Windows. It is searched using the file_search_path/2 alias user_profile. This refers to the current working directory, the users home (if any) or the Prolog home if the user has none (single-user OS).

In PLWIN.EXE, the personal initialisation file is accessible through the Settings menu. First use copies a default file with some commented common constructs. The same behaviour is also available from the graphical Prolog manual provided by XPCE and started with help/0.

The -s file commandline option is commonly used on Unix systems to load and start applications using a single command.

-- JanWielemaker - 28 May 2002

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback