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

Allow for using Lua files in bundles #571

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Allow for using Lua files in bundles #571

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Jun 6, 2020

No description provided.

TmpFinger2 added 2 commits June 6, 2020 11:57
(Puts the bundle dirs in front, in case a bundle chooses to pack
a custom copy of a system Lua module.)
Useful when require-ing Lua files within the bundle.
Avoids having to hard-code the bundle name, which in turn
allows renaming the bundle directory freely.
@ghost
Copy link

ghost commented Sep 6, 2020

For context, here is the bundle that made me propose these changes - https://repo.or.cz/howl-parkour.git

I had a whole bunch of already written Lua code, and wrote an init.moon to make a Howl bundle out of it.
In order to require the Lua files, I had to resort to changing package.path from withing the bundle, and to hardcoding the name of the plugin directory.

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

Successfully merging this pull request may close these issues.

None yet

0 participants