{"action":"created","issue":{"url":"https://api.github.com/repos/pkgcore/pkgcore/issues/126","labels_url":"https://api.github.com/repos/pkgcore/pkgcore/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/pkgcore/pkgcore/issues/126/comments","events_url":"https://api.github.com/repos/pkgcore/pkgcore/issues/126/events","html_url":"https://github.com/pkgcore/pkgcore/pull/126","id":104348660,"number":126,"title":"spawn.find_invoking_python: don't trust sys.executable","user":{"login":"zmedico","id":3420795,"avatar_url":"https://avatars.githubusercontent.com/u/3420795?v=3","gravatar_id":"","url":"https://api.github.com/users/zmedico","html_url":"https://github.com/zmedico","followers_url":"https://api.github.com/users/zmedico/followers","following_url":"https://api.github.com/users/zmedico/following{/other_user}","gists_url":"https://api.github.com/users/zmedico/gists{/gist_id}","starred_url":"https://api.github.com/users/zmedico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zmedico/subscriptions","organizations_url":"https://api.github.com/users/zmedico/orgs","repos_url":"https://api.github.com/users/zmedico/repos","events_url":"https://api.github.com/users/zmedico/events{/privacy}","received_events_url":"https://api.github.com/users/zmedico/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-01T20:30:20Z","updated_at":"2015-09-02T20:17:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pkgcore/pkgcore/pulls/126","html_url":"https://github.com/pkgcore/pkgcore/pull/126","diff_url":"https://github.com/pkgcore/pkgcore/pull/126.diff","patch_url":"https://github.com/pkgcore/pkgcore/pull/126.patch"},"body":"If the python interpreter is embedded in another process such as uwsgi,\r\nthen sys.executable is not reliable."},"comment":{"url":"https://api.github.com/repos/pkgcore/pkgcore/issues/comments/137231084","html_url":"https://github.com/pkgcore/pkgcore/pull/126#issuecomment-137231084","issue_url":"https://api.github.com/repos/pkgcore/pkgcore/issues/126","id":137231084,"user":{"login":"zmedico","id":3420795,"avatar_url":"https://avatars.githubusercontent.com/u/3420795?v=3","gravatar_id":"","url":"https://api.github.com/users/zmedico","html_url":"https://github.com/zmedico","followers_url":"https://api.github.com/users/zmedico/followers","following_url":"https://api.github.com/users/zmedico/following{/other_user}","gists_url":"https://api.github.com/users/zmedico/gists{/gist_id}","starred_url":"https://api.github.com/users/zmedico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zmedico/subscriptions","organizations_url":"https://api.github.com/users/zmedico/orgs","repos_url":"https://api.github.com/users/zmedico/repos","events_url":"https://api.github.com/users/zmedico/events{/privacy}","received_events_url":"https://api.github.com/users/zmedico/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T20:17:18Z","updated_at":"2015-09-02T20:17:18Z","body":"I've updated it to use os.path.exists (instead of access) and spawn_get_output, and added memoization."}}