Not sure if this is possible, but if it is, could someone let me know how to do it?
For example, if I want to access the package-manager module from
settings-view, how would I go about doing this?
What I’ve tried:
I can do something like
sv = atom.packages.getActivePackage('settings-view'), and then
sv.mainModule, which will give me the main module, but this is not exactly what I want.
I could also do something like
sv.mainModulePath and try to get at the surrounding modules via altering that filepath, but this is a bit hackish. In fact it doesn’t even work in my case, as this is returned:
app.asar, which is not a real filepath, as I understand it.
Is there a right way to do this?