From 3ab1aa2db25d853e08e51327f1b4582b21016f1a Mon Sep 17 00:00:00 2001 From: Paul Goins Date: Tue, 29 Dec 2009 16:05:05 +0900 Subject: [PATCH] One more update to preferences to get back up to speed. --- jben/jben/preferences.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jben/jben/preferences.py b/jben/jben/preferences.py index 57dfd15..055a488 100644 --- a/jben/jben/preferences.py +++ b/jben/jben/preferences.py @@ -53,7 +53,6 @@ class Preferences(dict): "mobile" installs), followed by the user's home directory. """ - global original_save_target loaded = False if filename: @@ -118,7 +117,7 @@ class Preferences(dict): both files and decide which one to use. """ - save_data = __create_config_file_string() + save_data = self.__create_config_file_string() #print "save_data = [%s]" % save_data files = set() @@ -132,7 +131,7 @@ class Preferences(dict): mobile_path = os.path.join( "..", jben_globals.CFG_FOLDER, "jben.cfg") - targets = (self["config_save_target"], original_save_target) + targets = (self["config_save_target"], self.original_save_target) for target in targets: if target == "unset": target = "home" if target == "mobile" or not home_path: -- 2.11.4.GIT