{"action":"created","issue":{"url":"https://api.github.com/repos/jmcantrell/vim-virtualenv/issues/23","labels_url":"https://api.github.com/repos/jmcantrell/vim-virtualenv/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/jmcantrell/vim-virtualenv/issues/23/comments","events_url":"https://api.github.com/repos/jmcantrell/vim-virtualenv/issues/23/events","html_url":"https://github.com/jmcantrell/vim-virtualenv/pull/23","id":32740843,"number":23,"title":"Use subprocess to obtain correct site_packages #20","user":{"login":"housleyjk","id":5325564,"avatar_url":"https://avatars.githubusercontent.com/u/5325564?v=3","gravatar_id":"","url":"https://api.github.com/users/housleyjk","html_url":"https://github.com/housleyjk","followers_url":"https://api.github.com/users/housleyjk/followers","following_url":"https://api.github.com/users/housleyjk/following{/other_user}","gists_url":"https://api.github.com/users/housleyjk/gists{/gist_id}","starred_url":"https://api.github.com/users/housleyjk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/housleyjk/subscriptions","organizations_url":"https://api.github.com/users/housleyjk/orgs","repos_url":"https://api.github.com/users/housleyjk/repos","events_url":"https://api.github.com/users/housleyjk/events{/privacy}","received_events_url":"https://api.github.com/users/housleyjk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-05-03T06:00:03Z","updated_at":"2015-01-29T07:08:19Z","closed_at":"2015-01-29T07:08:19Z","pull_request":{"url":"https://api.github.com/repos/jmcantrell/vim-virtualenv/pulls/23","html_url":"https://github.com/jmcantrell/vim-virtualenv/pull/23","diff_url":"https://github.com/jmcantrell/vim-virtualenv/pull/23.diff","patch_url":"https://github.com/jmcantrell/vim-virtualenv/pull/23.patch"},"body":"I ran into issue #20 because I have vim compiled with python 2 but I want to use syntax checking (via syntastic #15) and autocompletion (via YouCompleteMe). This code limits the PYTHONPATH mangling to just the cwd plus the site_packages that would be appended to sys.path if the environment where activated using the default interpreter for that environment. On my box, I get results for syntastic with flake8 and YouCompleteMe. I expect that this will also solve the problem for Python3 virtualenvs with neocomplete or other plugins. "},"comment":{"url":"https://api.github.com/repos/jmcantrell/vim-virtualenv/issues/comments/71980135","html_url":"https://github.com/jmcantrell/vim-virtualenv/pull/23#issuecomment-71980135","issue_url":"https://api.github.com/repos/jmcantrell/vim-virtualenv/issues/23","id":71980135,"user":{"login":"jmcantrell","id":33200,"avatar_url":"https://avatars.githubusercontent.com/u/33200?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcantrell","html_url":"https://github.com/jmcantrell","followers_url":"https://api.github.com/users/jmcantrell/followers","following_url":"https://api.github.com/users/jmcantrell/following{/other_user}","gists_url":"https://api.github.com/users/jmcantrell/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcantrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcantrell/subscriptions","organizations_url":"https://api.github.com/users/jmcantrell/orgs","repos_url":"https://api.github.com/users/jmcantrell/repos","events_url":"https://api.github.com/users/jmcantrell/events{/privacy}","received_events_url":"https://api.github.com/users/jmcantrell/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T07:08:19Z","updated_at":"2015-01-29T07:08:19Z","body":"I'm sorry, but I really dislike the idea of invoking a shell command like this, and I'm not sure what this is supposed to solve."}}