Reputation: 9620
I would like the path to the user's home directory, on both OSX and Win 10. How is this done in NetLogo?
How can a user configure the start up user directory for NetLogo? (I know this can be done via the OS. I am asking for a .cfg
file of some sort.)
Upvotes: 1
Views: 50
Reputation: 4168
With regard to your first question, the pathdir
extension has a reporter that returns the user's home directory.
pathdir:get-home-path
Returns a string with the full (absolute) path to the user's home directory, as specified by the "user.home" environment variable of the host operating system.
I believe this is usually set properly in Windows 10 and OSX.
Upvotes: 2