[issue8772] sysconfig: _get_default_scheme can be made public?

Sridhar Ratnakumar report at bugs.python.org
Thu May 20 18:26:44 CEST 2010


Sridhar Ratnakumar <sridharr at activestate.com> added the comment:

Here it is:

        def get_current_scheme():
            scheme = os.name
            if scheme == 'posix':
                scheme = 'posix_prefix'
            return scheme

        def get_current_user_scheme():
            scheme = os.name
            if sys.platform == 'darwin':
                scheme = 'osx_framework_user'
            else:
                scheme += '_user'
            return scheme

What do you think?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8772>
_______________________________________


More information about the Python-bugs-list mailing list