MCPcopy Index your code
hub / github.com/python/cpython / _get_preferred_schemes

Function _get_preferred_schemes

Lib/sysconfig/__init__.py:278–296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

276
277
278def _get_preferred_schemes():
279 if os.name == 'nt':
280 return {
281 'prefix': 'nt',
282 'home': 'posix_home',
283 'user': 'nt_user',
284 }
285 if sys.platform == 'darwin' and sys._framework:
286 return {
287 'prefix': 'posix_prefix',
288 'home': 'posix_home',
289 'user': 'osx_framework_user',
290 }
291
292 return {
293 'prefix': 'posix_prefix',
294 'home': 'posix_home',
295 'user': 'posix_user',
296 }
297
298
299def get_preferred_scheme(key):

Callers 2

get_preferred_schemeFunction · 0.85

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…