@S_L wrote:
I have a script in a GHPython component that loads a library like so:
sys.path.append(r"[MY USER PATH]\AppData\Roaming\McNeel\Rhinoceros\6.0\scripts\libraries\accord_3-8-0\net462") clr.AddReference("Accord.Statistics") import Accord.Statistics as ast
If I load Rhino and run this script it will give a TypeLoadException Error (as if the library can’t be found) like so:
But if I run a script from the Rhino Python editor with the exact same three-line import prior to running the GHPython script, everything’s fine. What’s going on here? Is it a path thing?
Hoping this is a known problem so example files not necessary (might be a pain to provide all the relevant accord library files), but if more information is needed I’ll put together an example file.
Posts: 3
Participants: 3