Monday, February 24, 2014

Locating the site-packages folder from within python

Nice way to find where the site-packages folder is located for your linux distribution from within python itself (found here)

import site
print site.getsitepackages()

Apparently not available in older python version.