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

Function readSystemPreferences

Lib/idlelib/macosx.py:85–97  ·  view source on GitHub ↗

Fetch the macOS system preferences.

()

Source from the content-addressed store, hash-verified

83
84
85def readSystemPreferences():
86 """
87 Fetch the macOS system preferences.
88 """
89 if platform != 'darwin':
90 return None
91
92 plist_path = expanduser('~/Library/Preferences/.GlobalPreferences.plist')
93 try:
94 with open(plist_path, 'rb') as plist_file:
95 return plistlib.load(plist_file)
96 except OSError:
97 return None
98
99
100def preferTabsPreferenceWarning():

Callers 1

Calls 3

expanduserFunction · 0.90
openFunction · 0.50
loadMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…