EvolveLabs / electron-plugins

Plugin loader for electron applications.
MIT License
58 stars 11 forks source link

Solves for issue #6 by adding path string to the context object used … #7

Open dbolack-ab opened 6 years ago

dbolack-ab commented 6 years ago

…on load.

Also adds two booleans. One to create the plugin path if not found and another to quiet console messages.

If the provided app path is empty, the default will be used. If the first character of the path is ~, that will be substitued with the results of os.homedir() If the last character of the path is :, that will be sibstituted with the App Path per ApplicationPath Both substitutions are performed with path.join.

README.md updated to match.

justinmchase commented 6 years ago

Hey, thanks for the PR!

I'm the original author of this package and as such am willing to merge this change and publish it but I have been out of the loop with the evolve team and would like to hear any feedback they may have on these changes before doing so.

@BlairEvolve I'm not sure if this library still affects the client or not but I'm happy to help transfer npm module ownership or just publish changes as needed.