algorithmic modeling for Rhino
Hi Dimitry,
utility is not a standard library module, right?
GhPython uses the same resolution as _EditPythonScript and Rhino. It instructs the runtime to look at the very same places. You can see them inside Tools, then Options (see image on the right).
Nevertheless, are you meaning that you have the Grasshopper file and Python module in the same folder and would like to maintain the link relatively? This sample shows how to, using the sys module.
Cheers,
- Giulio
_______________
giulio@mcneel.com
Btw, there is an item in the issues about this. There is a good chance that we will decide to add the local path to the sys.path list automatically. This, however, might have some implications when several components execute in different documents.
For now, please use the method above.
Thanks,
- Giulio
________________
giulio@mcneel.com
Hi Giulio,
Thank you for the helpful reply!
Cheers,
Dimitry
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by