{"action":"created","issue":{"url":"https://api.github.com/repos/NetLogo/NetLogo/issues/415","labels_url":"https://api.github.com/repos/NetLogo/NetLogo/issues/415/labels{/name}","comments_url":"https://api.github.com/repos/NetLogo/NetLogo/issues/415/comments","events_url":"https://api.github.com/repos/NetLogo/NetLogo/issues/415/events","html_url":"https://github.com/NetLogo/NetLogo/issues/415","id":18242724,"number":415,"title":"NetLogo shouldn't rely on current working directory to find its own files","user":{"login":"SethTisue","id":161079,"avatar_url":"https://avatars.githubusercontent.com/u/161079?v=3","gravatar_id":"","url":"https://api.github.com/users/SethTisue","html_url":"https://github.com/SethTisue","followers_url":"https://api.github.com/users/SethTisue/followers","following_url":"https://api.github.com/users/SethTisue/following{/other_user}","gists_url":"https://api.github.com/users/SethTisue/gists{/gist_id}","starred_url":"https://api.github.com/users/SethTisue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SethTisue/subscriptions","organizations_url":"https://api.github.com/users/SethTisue/orgs","repos_url":"https://api.github.com/users/SethTisue/repos","events_url":"https://api.github.com/users/SethTisue/events{/privacy}","received_events_url":"https://api.github.com/users/SethTisue/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NetLogo/NetLogo/labels/enhancement","name":"enhancement","color":"02e10c"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/NetLogo/NetLogo/milestones/22","html_url":"https://github.com/NetLogo/NetLogo/milestones/5.3","labels_url":"https://api.github.com/repos/NetLogo/NetLogo/milestones/22/labels","id":1450930,"number":22,"title":"5.3","description":"5.3 release","creator":{"login":"mrerrormessage","id":143198,"avatar_url":"https://avatars.githubusercontent.com/u/143198?v=3","gravatar_id":"","url":"https://api.github.com/users/mrerrormessage","html_url":"https://github.com/mrerrormessage","followers_url":"https://api.github.com/users/mrerrormessage/followers","following_url":"https://api.github.com/users/mrerrormessage/following{/other_user}","gists_url":"https://api.github.com/users/mrerrormessage/gists{/gist_id}","starred_url":"https://api.github.com/users/mrerrormessage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrerrormessage/subscriptions","organizations_url":"https://api.github.com/users/mrerrormessage/orgs","repos_url":"https://api.github.com/users/mrerrormessage/repos","events_url":"https://api.github.com/users/mrerrormessage/events{/privacy}","received_events_url":"https://api.github.com/users/mrerrormessage/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":6,"state":"open","created_at":"2015-12-08T22:36:41Z","updated_at":"2015-12-14T14:59:59Z","due_on":"2015-12-15T06:00:00Z","closed_at":null},"comments":5,"created_at":"2013-08-19T14:33:53Z","updated_at":"2015-12-14T15:08:43Z","closed_at":"2015-12-14T14:59:29Z","body":"(I'm just going to discuss the headless case, but it might be nice to have this fixed for GUI NetLogo as well)\r\n\r\n`netlogo-headless.sh` begins with:\r\n\r\n    cd \"`dirname \"$0\"`\"\r\n\r\nso that NetLogo can find the `extensions` and `lib` directories. but this can be awkward for users for a variety of reasons:\r\n\r\n * they may be constructing their own launch script and not realize they need to copy what `netlogo-headless.sh` does\r\n * environment such as cluster computing environments may have their own ideas about what the current working directory ought to be\r\n * if NetLogo insists on having the working directory set for its own purposes, users can't set it to something else in order for their own model to be able to find its own files\r\n\r\nan example recent thread on this is https://groups.google.com/d/msg/netlogo-devel/ppmG2yn7m_I/6eNVnuuoIx4J , but it's something that has come up repeatedly over the years\r\n\r\nwhat form might a solution take? maybe an environment variable like NETLOGO_HOME that you'd set before launching\r\n\r\nnote that the `lib` directory might require special thought. the classpath in NetLogo.jar references jars in `lib` via relative paths. users can work around this by constructing their own classpath and not relying on the classpath line in the manifest in our jar, but it would be nice if they didn't have to do that.\r\n"},"comment":{"url":"https://api.github.com/repos/NetLogo/NetLogo/issues/comments/164461277","html_url":"https://github.com/NetLogo/NetLogo/issues/415#issuecomment-164461277","issue_url":"https://api.github.com/repos/NetLogo/NetLogo/issues/415","id":164461277,"user":{"login":"fstonedahl","id":770633,"avatar_url":"https://avatars.githubusercontent.com/u/770633?v=3","gravatar_id":"","url":"https://api.github.com/users/fstonedahl","html_url":"https://github.com/fstonedahl","followers_url":"https://api.github.com/users/fstonedahl/followers","following_url":"https://api.github.com/users/fstonedahl/following{/other_user}","gists_url":"https://api.github.com/users/fstonedahl/gists{/gist_id}","starred_url":"https://api.github.com/users/fstonedahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fstonedahl/subscriptions","organizations_url":"https://api.github.com/users/fstonedahl/orgs","repos_url":"https://api.github.com/users/fstonedahl/repos","events_url":"https://api.github.com/users/fstonedahl/events{/privacy}","received_events_url":"https://api.github.com/users/fstonedahl/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T15:08:43Z","updated_at":"2015-12-14T15:08:43Z","body":"Cheer!"}}