Privacy Policy
Snippets index

  Select 'site-packages' folder of active virtualenv

file "gotosp.py":

System Message: WARNING/2 (<string>, line 3)

Cannot analyze code. Pygments package not found.

.. code:: python

    #!/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])