Plugin install folder?

Hmm… seems to work for me too… now… And why is that? Could restarting Rhino have anything to do with it? I’ll have to do some tests on that.

I needed to remove the file name from the path name and did it like this:


import Rhino
import rhinoscriptsyntax as rs

id= rs.PlugInId ("Holomark2")
plugin = Rhino.PlugIns.PlugIn.Find(id)
path = plugin.Assembly.Location

# Holomark2.rhp = 13 letters

pathLength=len(path)-13
newPath=path[0:pathLength]

print newPath

I like the logic in doing it like that, but is it the most reliable and “propper” way of handling a string?