{"action":"created","comment":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/comments/77791030","id":77791030,"diff_hunk":"@@ -771,6 +771,16 @@ testing service, and an ``appveyor.yml`` file for using `AppVeyor <https://www.a\n the Travis and AppVeyor websites for your package repository, but once you've done that, it will already have working tests.\n Of course, all the default testing does is verify that ``using FooBar`` in Julia works.\n \n+Loading Static Non-Julia Files\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+If your package code needs to load static files which are not Julia code, e.g. an external library or data files, and are located\n+within the package directory, use the ``@__DIR__`` macro to determine the directory of the current source file. For example if\n+package ``FooBar`` needs to load ``foo.csv`` from the ``data`` directory, use the following code::\n+\n+    datapath = joinpath(@__DIR__, \"..\", \"data\")\n+    foo = readcsv(joinpath(datapath, \"foo.csv\")","path":"doc/manual/packages.rst","position":12,"original_position":12,"commit_id":"d2d9fb5fbc4db8eadb515afaa3cc96c13d807f8d","original_commit_id":"d2d9fb5fbc4db8eadb515afaa3cc96c13d807f8d","user":{"login":"simonster","id":470884,"avatar_url":"https://avatars.githubusercontent.com/u/470884?v=3","gravatar_id":"","url":"https://api.github.com/users/simonster","html_url":"https://github.com/simonster","followers_url":"https://api.github.com/users/simonster/followers","following_url":"https://api.github.com/users/simonster/following{/other_user}","gists_url":"https://api.github.com/users/simonster/gists{/gist_id}","starred_url":"https://api.github.com/users/simonster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonster/subscriptions","organizations_url":"https://api.github.com/users/simonster/orgs","repos_url":"https://api.github.com/users/simonster/repos","events_url":"https://api.github.com/users/simonster/events{/privacy}","received_events_url":"https://api.github.com/users/simonster/received_events","type":"User","site_admin":false},"body":"Missing `)`","created_at":"2016-09-07T09:42:54Z","updated_at":"2016-09-07T09:42:54Z","html_url":"https://github.com/JuliaLang/julia/pull/18380#discussion_r77791030","pull_request_url":"https://api.github.com/repos/JuliaLang/julia/pulls/18380","_links":{"self":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/comments/77791030"},"html":{"href":"https://github.com/JuliaLang/julia/pull/18380#discussion_r77791030"},"pull_request":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/18380"}}},"pull_request":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/18380","id":84190769,"html_url":"https://github.com/JuliaLang/julia/pull/18380","diff_url":"https://github.com/JuliaLang/julia/pull/18380.diff","patch_url":"https://github.com/JuliaLang/julia/pull/18380.patch","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/18380","number":18380,"state":"open","locked":false,"title":"Add @__DIR__ and document use in pkgs. Fix #12120","user":{"login":"helgee","id":1408922,"avatar_url":"https://avatars.githubusercontent.com/u/1408922?v=3","gravatar_id":"","url":"https://api.github.com/users/helgee","html_url":"https://github.com/helgee","followers_url":"https://api.github.com/users/helgee/followers","following_url":"https://api.github.com/users/helgee/following{/other_user}","gists_url":"https://api.github.com/users/helgee/gists{/gist_id}","starred_url":"https://api.github.com/users/helgee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helgee/subscriptions","organizations_url":"https://api.github.com/users/helgee/orgs","repos_url":"https://api.github.com/users/helgee/repos","events_url":"https://api.github.com/users/helgee/events{/privacy}","received_events_url":"https://api.github.com/users/helgee/received_events","type":"User","site_admin":false},"body":"x-ref: #12120","created_at":"2016-09-06T20:30:04Z","updated_at":"2016-09-07T09:42:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"87448a4329eae67ed03c8f3e4a3934a4b24e2bcc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/JuliaLang/julia/pulls/18380/commits","review_comments_url":"https://api.github.com/repos/JuliaLang/julia/pulls/18380/comments","review_comment_url":"https://api.github.com/repos/JuliaLang/julia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/18380/comments","statuses_url":"https://api.github.com/repos/JuliaLang/julia/statuses/d2d9fb5fbc4db8eadb515afaa3cc96c13d807f8d","head":{"label":"helgee:master","ref":"master","sha":"d2d9fb5fbc4db8eadb515afaa3cc96c13d807f8d","user":{"login":"helgee","id":1408922,"avatar_url":"https://avatars.githubusercontent.com/u/1408922?v=3","gravatar_id":"","url":"https://api.github.com/users/helgee","html_url":"https://github.com/helgee","followers_url":"https://api.github.com/users/helgee/followers","following_url":"https://api.github.com/users/helgee/following{/other_user}","gists_url":"https://api.github.com/users/helgee/gists{/gist_id}","starred_url":"https://api.github.com/users/helgee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helgee/subscriptions","organizations_url":"https://api.github.com/users/helgee/orgs","repos_url":"https://api.github.com/users/helgee/repos","events_url":"https://api.github.com/users/helgee/events{/privacy}","received_events_url":"https://api.github.com/users/helgee/received_events","type":"User","site_admin":false},"repo":{"id":6139708,"name":"julia","full_name":"helgee/julia","owner":{"login":"helgee","id":1408922,"avatar_url":"https://avatars.githubusercontent.com/u/1408922?v=3","gravatar_id":"","url":"https://api.github.com/users/helgee","html_url":"https://github.com/helgee","followers_url":"https://api.github.com/users/helgee/followers","following_url":"https://api.github.com/users/helgee/following{/other_user}","gists_url":"https://api.github.com/users/helgee/gists{/gist_id}","starred_url":"https://api.github.com/users/helgee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helgee/subscriptions","organizations_url":"https://api.github.com/users/helgee/orgs","repos_url":"https://api.github.com/users/helgee/repos","events_url":"https://api.github.com/users/helgee/events{/privacy}","received_events_url":"https://api.github.com/users/helgee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/helgee/julia","description":"The Julia Language: A fresh approach to technical computing.","fork":true,"url":"https://api.github.com/repos/helgee/julia","forks_url":"https://api.github.com/repos/helgee/julia/forks","keys_url":"https://api.github.com/repos/helgee/julia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/helgee/julia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/helgee/julia/teams","hooks_url":"https://api.github.com/repos/helgee/julia/hooks","issue_events_url":"https://api.github.com/repos/helgee/julia/issues/events{/number}","events_url":"https://api.github.com/repos/helgee/julia/events","assignees_url":"https://api.github.com/repos/helgee/julia/assignees{/user}","branches_url":"https://api.github.com/repos/helgee/julia/branches{/branch}","tags_url":"https://api.github.com/repos/helgee/julia/tags","blobs_url":"https://api.github.com/repos/helgee/julia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/helgee/julia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/helgee/julia/git/refs{/sha}","trees_url":"https://api.github.com/repos/helgee/julia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/helgee/julia/statuses/{sha}","languages_url":"https://api.github.com/repos/helgee/julia/languages","stargazers_url":"https://api.github.com/repos/helgee/julia/stargazers","contributors_url":"https://api.github.com/repos/helgee/julia/contributors","subscribers_url":"https://api.github.com/repos/helgee/julia/subscribers","subscription_url":"https://api.github.com/repos/helgee/julia/subscription","commits_url":"https://api.github.com/repos/helgee/julia/commits{/sha}","git_commits_url":"https://api.github.com/repos/helgee/julia/git/commits{/sha}","comments_url":"https://api.github.com/repos/helgee/julia/comments{/number}","issue_comment_url":"https://api.github.com/repos/helgee/julia/issues/comments{/number}","contents_url":"https://api.github.com/repos/helgee/julia/contents/{+path}","compare_url":"https://api.github.com/repos/helgee/julia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/helgee/julia/merges","archive_url":"https://api.github.com/repos/helgee/julia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/helgee/julia/downloads","issues_url":"https://api.github.com/repos/helgee/julia/issues{/number}","pulls_url":"https://api.github.com/repos/helgee/julia/pulls{/number}","milestones_url":"https://api.github.com/repos/helgee/julia/milestones{/number}","notifications_url":"https://api.github.com/repos/helgee/julia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/helgee/julia/labels{/name}","releases_url":"https://api.github.com/repos/helgee/julia/releases{/id}","deployments_url":"https://api.github.com/repos/helgee/julia/deployments","created_at":"2012-10-09T11:33:29Z","updated_at":"2016-02-18T09:14:53Z","pushed_at":"2016-09-07T06:27:21Z","git_url":"git://github.com/helgee/julia.git","ssh_url":"git@github.com:helgee/julia.git","clone_url":"https://github.com/helgee/julia.git","svn_url":"https://github.com/helgee/julia","homepage":"http://julialang.org/","size":88881,"stargazers_count":0,"watchers_count":0,"language":"Julia","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"JuliaLang:master","ref":"master","sha":"8761c48f8497710f572c18f39e83a7b3fc1ceadc","user":{"login":"JuliaLang","id":743164,"avatar_url":"https://avatars.githubusercontent.com/u/743164?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"repo":{"id":1644196,"name":"julia","full_name":"JuliaLang/julia","owner":{"login":"JuliaLang","id":743164,"avatar_url":"https://avatars.githubusercontent.com/u/743164?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JuliaLang/julia","description":"The Julia Language: A fresh approach to technical computing.","fork":false,"url":"https://api.github.com/repos/JuliaLang/julia","forks_url":"https://api.github.com/repos/JuliaLang/julia/forks","keys_url":"https://api.github.com/repos/JuliaLang/julia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaLang/julia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaLang/julia/teams","hooks_url":"https://api.github.com/repos/JuliaLang/julia/hooks","issue_events_url":"https://api.github.com/repos/JuliaLang/julia/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaLang/julia/events","assignees_url":"https://api.github.com/repos/JuliaLang/julia/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaLang/julia/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaLang/julia/tags","blobs_url":"https://api.github.com/repos/JuliaLang/julia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaLang/julia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaLang/julia/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaLang/julia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaLang/julia/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaLang/julia/languages","stargazers_url":"https://api.github.com/repos/JuliaLang/julia/stargazers","contributors_url":"https://api.github.com/repos/JuliaLang/julia/contributors","subscribers_url":"https://api.github.com/repos/JuliaLang/julia/subscribers","subscription_url":"https://api.github.com/repos/JuliaLang/julia/subscription","commits_url":"https://api.github.com/repos/JuliaLang/julia/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaLang/julia/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaLang/julia/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaLang/julia/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaLang/julia/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaLang/julia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaLang/julia/merges","archive_url":"https://api.github.com/repos/JuliaLang/julia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaLang/julia/downloads","issues_url":"https://api.github.com/repos/JuliaLang/julia/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaLang/julia/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaLang/julia/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaLang/julia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaLang/julia/labels{/name}","releases_url":"https://api.github.com/repos/JuliaLang/julia/releases{/id}","deployments_url":"https://api.github.com/repos/JuliaLang/julia/deployments","created_at":"2011-04-21T07:01:50Z","updated_at":"2016-09-07T09:35:03Z","pushed_at":"2016-09-07T09:42:41Z","git_url":"git://github.com/JuliaLang/julia.git","ssh_url":"git@github.com:JuliaLang/julia.git","clone_url":"https://github.com/JuliaLang/julia.git","svn_url":"https://github.com/JuliaLang/julia","homepage":"http://julialang.org/","size":420839,"stargazers_count":7464,"watchers_count":7464,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1747,"mirror_url":null,"open_issues_count":1977,"forks":1747,"open_issues":1977,"watchers":7464,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/18380"},"html":{"href":"https://github.com/JuliaLang/julia/pull/18380"},"issue":{"href":"https://api.github.com/repos/JuliaLang/julia/issues/18380"},"comments":{"href":"https://api.github.com/repos/JuliaLang/julia/issues/18380/comments"},"review_comments":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/18380/comments"},"review_comment":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/18380/commits"},"statuses":{"href":"https://api.github.com/repos/JuliaLang/julia/statuses/d2d9fb5fbc4db8eadb515afaa3cc96c13d807f8d"}}}}
{"actor":{"display_login":"simonster"}}