Open piac opened 12 years ago
It is and will always be possible to add paths manually with this syntax:
import sys if not my_path in sys.path: sys.path.append(my_path)
import my_library
I think this is most relevant to new users and to people who want to create and share plugins.
new users, who are trying to use some neat python library they found, would benefit from a simple non-code interface for adding python modules to import from. If there was an option to right click, then select a folder to add to the sys.path, I think using external modules would be less intimidating to a brand new user.
The second use case is script authors who want to share a script that relies on additional modules. this might be well addressed in several ways:
I think I would need some interventions in the main Rhino.Python plugin for this, as the ghPython component is, among other things, a trimmed-down version of the same editor that is there in _EditPythonScript. This actually means that
http://www.grasshopper3d.com/forum/topics/gh-python-component-why-the