Scrupp SVN Manual
Create your own 2D games and applications

Search Path Configuration

In order to understand how the search path is configured, the following definitions are needed:

base directory
The directory that contains the Scrupp executable.
working directory
This directory is important if you want to modify files using the input and output facilities of plain Lua.
SHARE_DIR
On Linux, the SHARE_DIR defaults to ${prefix}/share/scrupp. The prefix is defined by the configure script (default: /usr/local). During the installation, all support files ("main.slua" and the directories "examples", "fonts" and "scripts") are copied to this directory.

The following figure shows Scrupp's behaviour on startup, i.e. how it sets the search path and working directory. Click it for a bigger version.

behaviour on startup


Hosted by
SourceForge.net Logo

Valid XHTML 1.0!

Last modified Wed Feb 22, 2012