def load(self, path):
        "Loads complete namespace tree from file given by path."
        if self.__master is None:
            with open(path, 'rb') as file:
                data = file.read()
            klass, state = pickle.loads(zlib.decompress(data))
            if klass is Namespace:
                self.__set_state(state)
        else:
            self.__master.load(path)
Loads complete namespace tree from file given by path.
recipes/Python/578173_Settings_Organizer/recipe-578173.py