Message106123
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')): |
|
Date |
User |
Action |
Args |
2010-05-20 00:49:03 | srid | set | recipients:
+ srid, tarek |
2010-05-20 00:49:03 | srid | set | messageid: <1274316543.49.0.459176748413.issue8772@psf.upfronthosting.co.za> |
2010-05-20 00:49:01 | srid | link | issue8772 messages |
2010-05-20 00:49:00 | srid | create | |
|