On Dec 13, 2012, at 11:04 AM, Matthias Klose wrote: >Am 12.12.2012 21:06, schrieb Barry Warsaw: >> Or this one... > >when creating a virtualenv, you usually know which interpreter you'll be >using for the new env, so why not use the interpreter to get the name of the >dir? > >python -S -c 'import sys, os.path; print [os.path.basename(d) for d in >sys.path if os.path.basename(d).startswith("plat-")][0]'
I really don't want to promote hacks like this. It will lead everyone to inventing their own slightly different ways of doing it, and then we'll have no clear recommendations, but a million opinions and hacks. Please see the discussion on debian-python.
signature.asc
Description: PGP signature