Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5815

Accessing modules in a compiled python command using a relative path

$
0
0

@S_L wrote:

I have a compiled python plugin with 5 commands and I want these commands to use a common python library I’ve built.

I know that the current version of the Rhino Script Compiler doesn’t support this; what I hoping to do instead is distribute the python library with the installer and instruct the user to put it in the Rhinoceros\6.0\scripts directory.
This doesn’t work, I believe because the compiled script isn’t searching that path.

Is there something I can add to the import statement that will make it access a path relative from the Rhinoceros directory?

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5815

Trending Articles