Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

naim needs a sane search path and default load mechanism for Lua modules #7

Closed
jwise opened this issue Aug 17, 2011 · 3 comments
Closed
Milestone

Comments

@jwise
Copy link
Owner

jwise commented Aug 17, 2011

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.

@jwise
Copy link
Owner Author

jwise commented Sep 4, 2011

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.

@jwise
Copy link
Owner Author

jwise commented Sep 5, 2011

Seems maybe PKGMODDIR might be more appropriate than PKGDATADIR.

1 similar comment
@jwise
Copy link
Owner Author

jwise commented Sep 5, 2011

Seems maybe PKGMODDIR might be more appropriate than PKGDATADIR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant