Privacy Policy
Snippets index

  Select 'site-packages' folder of active virtualenv

file "gotosp.py":

#!/usr/bin/env python
from __future__ import print_function
import sys
import os
from subprocess import call

path = os.path.realpath(sys.executable)
path = os.path.join(path.replace('/bin/', '/lib/'), 'site-packages')
print(path)
call(["open", path])