Custom module

how or where do i call my module created by myself in GhPython_?

You can import MyModule at the top of your GHPython script, if it sits in the Rhino scripts directory. Otherwise, you need to add your specific path to sys.path first and then import, like this:

import sys

path = "/absolute/path/to/your/module/directory"
sys.path.append(path)

import MyModule
1 Like

thank you!

1 Like