Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (11 sloc) 353 Bytes
from distutils.sysconfig import get_python_version, get_python_lib
import os.path
import sys
for s in ('dist', 'site'):
pydir = os.path.join(sys.argv[1],
'python%s' % get_python_version(),
'%s-packages' % s)
if pydir in sys.path:
print(pydir)
sys.exit(0)
print(get_python_lib())