This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author srid
Recipients srid, tarek
Date 2010-05-20.00:49:00
SpamBayes Score 0.34739473
Marked as misclassified No
Message-id <>
Ideally I like to have a function like this:

            def get_current_scheme(usersite=False):
                scheme =
                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')):
Date User Action Args
2010-05-20 00:49:03sridsetrecipients: + srid, tarek
2010-05-20 00:49:03sridsetmessageid: <>
2010-05-20 00:49:01sridlinkissue8772 messages
2010-05-20 00:49:00sridcreate