Skip to content

Allow globally expanding import paths #2354

Description

@electrovoyage

I am developing sort of a package manager to make reusing code easier. Packages are installed to a fixed folder, in which lua doesn't look when require() is called. The list of search paths can be expanded by editing package.path but the changes only remain until the lua session quits, so if you do this in a script in /startup, it won't permanently change anything.
So I'm suggesting some sort of method of doing this permanently. Perhaps something similar to shell.setAlias?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAn extension of a feature or a new feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions