{"action":"created","issue":{"url":"https://api.github.com/repos/nanograv/PINT/issues/115","repository_url":"https://api.github.com/repos/nanograv/PINT","labels_url":"https://api.github.com/repos/nanograv/PINT/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/nanograv/PINT/issues/115/comments","events_url":"https://api.github.com/repos/nanograv/PINT/issues/115/events","html_url":"https://github.com/nanograv/PINT/pull/115","id":135786257,"number":115,"title":"Remove need for PINT environment variable.","user":{"login":"demorest","id":159985,"avatar_url":"https://avatars.githubusercontent.com/u/159985?v=3","gravatar_id":"","url":"https://api.github.com/users/demorest","html_url":"https://github.com/demorest","followers_url":"https://api.github.com/users/demorest/followers","following_url":"https://api.github.com/users/demorest/following{/other_user}","gists_url":"https://api.github.com/users/demorest/gists{/gist_id}","starred_url":"https://api.github.com/users/demorest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demorest/subscriptions","organizations_url":"https://api.github.com/users/demorest/orgs","repos_url":"https://api.github.com/users/demorest/repos","events_url":"https://api.github.com/users/demorest/events{/privacy}","received_events_url":"https://api.github.com/users/demorest/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-23T16:27:13Z","updated_at":"2016-02-25T00:05:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nanograv/PINT/pulls/115","html_url":"https://github.com/nanograv/PINT/pull/115","diff_url":"https://github.com/nanograv/PINT/pull/115.diff","patch_url":"https://github.com/nanograv/PINT/pull/115.patch"},"body":"As discussed on the call yesterday, it would be nice and modern for users to not need to set a PINT environment variable.  This was actually pretty easy, please check out this branch and see what you think.  Before merging this in, a few things to discuss:\r\n\r\nNote that setup.py will now install the datafiles under the installation target directory.  Before this can happen, 'download_data.sh' still needs to be run manually.  I don't see any reason why setup.py couldn't just download the files itself rather than needing an extra step.  If this sounds OK to you all, I will add this in and remove the download_data script.\r\n\r\nRight now, PINT will still first check for a PINT environment variable and if found use that rather than the install dir.  This is why the datafiles/ subdir is now symlinked into the top-level repository dir.  If this is a feature we want, we can keep this, or we could just have PINT ignore the environment variable.  Any preferences?"},"comment":{"url":"https://api.github.com/repos/nanograv/PINT/issues/comments/188527846","html_url":"https://github.com/nanograv/PINT/pull/115#issuecomment-188527846","issue_url":"https://api.github.com/repos/nanograv/PINT/issues/115","id":188527846,"user":{"login":"vhaasteren","id":3092444,"avatar_url":"https://avatars.githubusercontent.com/u/3092444?v=3","gravatar_id":"","url":"https://api.github.com/users/vhaasteren","html_url":"https://github.com/vhaasteren","followers_url":"https://api.github.com/users/vhaasteren/followers","following_url":"https://api.github.com/users/vhaasteren/following{/other_user}","gists_url":"https://api.github.com/users/vhaasteren/gists{/gist_id}","starred_url":"https://api.github.com/users/vhaasteren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vhaasteren/subscriptions","organizations_url":"https://api.github.com/users/vhaasteren/orgs","repos_url":"https://api.github.com/users/vhaasteren/repos","events_url":"https://api.github.com/users/vhaasteren/events{/privacy}","received_events_url":"https://api.github.com/users/vhaasteren/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T00:05:29Z","updated_at":"2016-02-25T00:05:29Z","body":"That is indeed what I am suggesting, @paulray . Location number (3) is completely standard, and that is where you would modify things if you wanted to. If location number (3) does not exist, it is created on runtime from number (2) at the start of PINT.\r\n\r\nNote here that (2) can vary, depending where and who installed PINT, but it is always know to PINT itself where that is. And the user will always have access to (3), since it is unique to each user.\r\n\r\nThe only tricky thing would be if a sys-admin would want to update clock files system wide. That would only work if the sys-admin updated (2), and then somehow gave the command that nr. (3) needs updating. I am not sure how that would work..."}}