Feature request: find out if the script is the main script #279
Labels
enhancement
New feature or request
pending / needs design
Awaiting design and/or implementation discussion and decisions
In python you can do something like this
It would be pretty handy for my use case to have something similar in lune, too. I often like my scripts to be usable as scripts, but to be able to
require
them as a module in other situations (e.g. unit testing). Maybe theprocess
library would be a good place for this. Than I could have at the end of my scripts something like this:Would you consider adding this feature?
Btw. Thanks for lune. It's a great tool
The text was updated successfully, but these errors were encountered: