use-script-dir Command

Changes the current directory to the one where the currently running script is stored. This is useful if you want to reference various files (like map sources, images, rules etc.) within your scripts without needing to specify absolute file paths.

See change-dir Command for more information on current directories.

This command can only be called within a Maperitive script.

Usage

use-script-dir

See also: