PATH "dirname";
All files belonging to the
application
- bitmaps, sounds, entities etc.
- will be first searched for in the work folder and then in the folder
given here.
Remarks:
- Backslashes ("\") have to be given in C notation as double
backslashes (like "C:\\games").
-
Paths will be searched in the given sequence. Paths are relative
to the current
work folder. In order to be able to copy your project to different
locations, use relative paths for all files belonging to your project,
and absolute
paths
for all files that are on an absolute location on your hard disk
(like template scripts).
-
A7 If the path begins
with "%EXE_DIR%", it's a subfolder
of the program folder (like "%EXE_DIR%\\template_6\\models").
Apart from that, do not use special characters or spaces in your
folder names.
-
Theoretically you can specify up to 32 PATH names,
but it's better to stay well below that limit.
Each folder is searched in sequence until a given file is
found, so having lots of paths can remarkably increase the startup
time.
- LC
Included scripts
are not searched in the paths. They should be located
in the work folder. Alternatively, their paths can be explicitely
given in the #include statements
or in PRAGMA_PATH statements.
- LC
At runtime paths can be added through add_folder().
Example
(WDL):
PATH "files\\models"; // Searching for models also in the work subfolder "files\models"
See also:
BIND, LEVEL, PRAGMA_PATH, add_folder
► latest
version online