Script Editor - can't find image path after publishing script to rhp

Hi @lxgbrl, take a look at this thread. Note that rhi installer is not there anymore so you’ll have to work with yak instead.

btw. the fun with files relative to a compliled script’s plugin folder begins when you’ve installed your plugin multiple times because yak did not remove the previous version or when

Rhino.PlugIns.PlugIn.PathFromName(string name)

returns the path to a plugin with the same name but not the Rhino version you’re actually running. In these cases, the path returned may not be the correct one.

The issue has been there for many years unfortunately.

@farouk.serragedine, how would you do this with the ScriptCompiler ?

_
c.