def _initialize_settings(self, name, default_settings = {}):
        
        if platform.system() == "Windows":
            settings_dir = os.environ.get("APPDATA", os.path.expanduser("~"))
            settings_file = "rwb.cfg"
        else:
            settings_dir = os.environ.get("HOME", os.path.expanduser("~"))
            settings_file = ".rwb.cfg"
        self.settings_path = os.path.join(settings_dir, settings_file)
        self.log.debug("settings path: %s" % self.settings_path)
        
        self.settings = ConfigObj(default_settings)

        if os.path.exists(self.settings_path):
            self.log.debug("reading config file '%s'" % self.settings_path)
            try:
                user_settings = ConfigObj(self.settings_path)
                self.settings.merge(user_settings)
            except Exception, e:
                # need to report this somewhere useful, and 
                # make sure it has some useful information
                self.log.debug("error reading config file: %s", e)
            self.log.debug("Settings: %s", self.settings)
        else:
            self.log.debug("no settings file found.")
Test that when logging in, an existing cart's Customer reference is set
dataset/ETHPy150Open boakley/robotframework-workbench/rwb/lib/rwbapp.py/AbstractRwbApp._initialize_settings--crossover with--dataset/ETHPy150Open awesto/django-shop/testshop/skip_test_customer.py/CustomerTest.test_keep_cart_on_login