The code below searches for .dll directory and tries to find Tools.txt file.
This worked for windows, but did not work for French and Japanese windows and Mac.
Is there any workaround?
I need to reference text file that is always placed in the same folder where the .dll is-
I added this code for GH_Component base class so that each component would run it, but other OS spits this error before grasshopper is loaded:
Object: ComponentOpenPolyline (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}
Object: ComponentOpenPolyline (level 2)
{
The path is not of a legal form.
ArgumentException
}
The issue is that a user sometimes edit that .txt file that is directly read in a component.
So I cannot just copy paste data inside a visual project as a string and constantly have acces to it.
Thank you for reply, but I still have an error.
The french is saying that there is smth wrong with the path.
I tested on Mac it works, on my windows pc also. But not on this student computer.
Any ideas how to get access to this txt file?