Sridhar Ratnakumar <sridh...@activestate.com> added the comment: Ideally I like to have a function like this:
def get_current_scheme(usersite=False): scheme = os.name if usersite: scheme += '_user' elif scheme == 'posix': scheme = 'posix_prefix' This would make it very easy to find the scheme for current Python installation - be it the global site-packages, or virtualenv or user site directory. Though, generally it can take into consideration other "sub schemes" as well - prefix, home and user: def get_current_scheme(subscheme=oneof('default', 'home', 'user')): ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8772> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com