Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Read preferences from (e.g.) prefs.js

:param path: The path to the preference file to read.
:param pref_setter: The name of the function used to set preferences
                    in the preference file.
:param interpolation: If provided, a dict that will be passed
                      to str.format to interpolate preference values.

src/w/p/wptrunner-0.2.5/wptrunner/browser.py   wptrunner(Download)
    def load_prefs(self):
        prefs_path = os.path.join(self.prefs_root, "prefs_general.js")
        if os.path.exists(prefs_path):
            preferences = Preferences.read_prefs(prefs_path)
        else:
    def load_prefs(self):
        prefs_path = os.path.join(self.prefs_root, "prefs_general.js")
        if os.path.exists(prefs_path):
            preferences = Preferences.read_prefs(prefs_path)
        else: