Library globals

Function globals . io . load_nasal

View source

Loads Nasal file into namespace and executes it. The namespace
(module name) is taken from the optional second argument, or
derived from the Nasal file's name.

Usage:   io.load_nasal(<filename> [, <modulename>]);

Example:

io.load_nasal(getprop("/sim/fg-root") ~ "/Local/test.nas");
io.load_nasal("/tmp/foo.nas", "test");

Parameters

file

module
optional