{"action":"created","issue":{"url":"https://api.github.com/repos/davidmarble/virtualenvwrapper-win/issues/43","repository_url":"https://api.github.com/repos/davidmarble/virtualenvwrapper-win","labels_url":"https://api.github.com/repos/davidmarble/virtualenvwrapper-win/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/davidmarble/virtualenvwrapper-win/issues/43/comments","events_url":"https://api.github.com/repos/davidmarble/virtualenvwrapper-win/issues/43/events","html_url":"https://github.com/davidmarble/virtualenvwrapper-win/issues/43","id":35670125,"number":43,"title":"Support hooks?","user":{"login":"adamc55","id":456429,"avatar_url":"https://avatars.githubusercontent.com/u/456429?v=3","gravatar_id":"","url":"https://api.github.com/users/adamc55","html_url":"https://github.com/adamc55","followers_url":"https://api.github.com/users/adamc55/followers","following_url":"https://api.github.com/users/adamc55/following{/other_user}","gists_url":"https://api.github.com/users/adamc55/gists{/gist_id}","starred_url":"https://api.github.com/users/adamc55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamc55/subscriptions","organizations_url":"https://api.github.com/users/adamc55/orgs","repos_url":"https://api.github.com/users/adamc55/repos","events_url":"https://api.github.com/users/adamc55/events{/privacy}","received_events_url":"https://api.github.com/users/adamc55/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-06-13T13:13:58Z","updated_at":"2016-03-10T07:40:54Z","closed_at":null,"body":"Am I correct in thinking this does not support hook scripts? (I looked at workon.bat and didn't see where they would be activated.)\r\n\r\nIf not, a feature request would be to support them.\r\n\r\nThanks for this project, by the way -- it makes my time in Windows a lot less painful."},"comment":{"url":"https://api.github.com/repos/davidmarble/virtualenvwrapper-win/issues/comments/194718587","html_url":"https://github.com/davidmarble/virtualenvwrapper-win/issues/43#issuecomment-194718587","issue_url":"https://api.github.com/repos/davidmarble/virtualenvwrapper-win/issues/43","id":194718587,"user":{"login":"spapas","id":3911074,"avatar_url":"https://avatars.githubusercontent.com/u/3911074?v=3","gravatar_id":"","url":"https://api.github.com/users/spapas","html_url":"https://github.com/spapas","followers_url":"https://api.github.com/users/spapas/followers","following_url":"https://api.github.com/users/spapas/following{/other_user}","gists_url":"https://api.github.com/users/spapas/gists{/gist_id}","starred_url":"https://api.github.com/users/spapas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spapas/subscriptions","organizations_url":"https://api.github.com/users/spapas/orgs","repos_url":"https://api.github.com/users/spapas/repos","events_url":"https://api.github.com/users/spapas/events{/privacy}","received_events_url":"https://api.github.com/users/spapas/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T07:40:53Z","updated_at":"2016-03-10T07:40:53Z","body":"Hello, I was able to enable the \"postactivate\" hook by adding the following to the end of ``PYTHON\\scripts\\workon.bat`` (similarly to ``mkvirtualenv.bat``)\r\n\r\nif defined VIRTUALENVWRAPPER_HOOK_DIR (\r\n    if exist \"%VIRTUALENVWRAPPER_HOOK_DIR%\\postactivate.bat\" (\r\n    \tcall \"%VIRTUALENVWRAPPER_HOOK_DIR%\\postactivate.bat\"\r\n    )\r\n)\r\n\r\nI am not sure enabling postactivate is so easy or I am missing something - if this solution is correct I can provide a PR."}}