Add a way to change script working directory #256
Labels
enhancement
New feature or request
pending / needs design
Awaiting design and/or implementation discussion and decisions
An API for changing the directory of a script (namely
process.chdir
), would be useful to for traversing directories at runtime, instead of being locked into the directorylune run
was invoked from.Potential Design
Drawbacks
This would potentially involve a breaking change, since
process.cwd
can no longer be a static string computed at builtin initialization time. Instead, it would need to do be a function which dynamically returns the current directory.The text was updated successfully, but these errors were encountered: