Skip to content

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.

0 participants