File path of definition

How do I get the file path of the current definition?

I’d like to use it to create relative file paths for loading Hops components.


Here’s a native GHPython solution: (3.5 KB)

Thank you, it’s good to know that plugin exists!

Indeed, I prefer this purely native solution, thank you! Now I can specify my Hops definitions using relative paths, see my other post.

1 Like