Closed jwise closed 12 years ago
Presumably search paths should be: ~/.naim, PKGDATADIR/lua, and maybe ABS_BUILDDIR/lua?, in that order.
Similarly, init routines should be loaded from userinit.lua, siteinit.lua, and distinit.lua. siteinit.lua would be optionally installed by a user in PKGDATADIR/lua; distinit.lua would be installed by the distribution; and userinit.lua would live in ~/.naim.
This seems pretty reasonable, modulo maybe the ABS_BUILDDIR. distinit would serve to load things like the OSCAR package, which doesn't get loaded from default, but does come with the distribution.
To do, then, is to figure out how to export PKGDATADIR and ABS_BUILDDIR from Die GNU Autotools into C headers. Tomorrow.
Seems maybe PKGMODDIR might be more appropriate than PKGDATADIR.
Seems maybe PKGMODDIR might be more appropriate than PKGDATADIR.
Right now, naim's /dofile only works out of your home directory, and there is no on-boot module loading. In order to use OSCAR full-time, OSCAR needs to load on naim boot.