gget r56 - trunk/gget



Author: johans
Date: Tue Aug  5 23:15:12 2008
New Revision: 56
URL: http://svn.gnome.org/viewvc/gget?rev=56&view=rev

Log:
Fixed two more mistakes. Running from source should really work now, really.

Modified:
   trunk/gget/Configuration.py

Modified: trunk/gget/Configuration.py
==============================================================================
--- trunk/gget/Configuration.py	(original)
+++ trunk/gget/Configuration.py	Tue Aug  5 23:15:12 2008
@@ -26,6 +26,7 @@
 import gconf
 
 import GUI
+import Utils
 
 DIR_GGET       = "/apps/gget"
 DIR_GNOME      = "/desktop/gnome"
@@ -134,6 +135,7 @@
         return Configuration.instance
 
     def __init(self, *args):
+        self.debug = args[0] or os.getenv("GGET_DEBUG")
         self.base_dir = os.path.expanduser("~/.gnome2/gget")
         if not os.path.exists(self.base_dir):
             os.makedirs(self.base_dir)
@@ -141,7 +143,6 @@
         self.client = gconf.client_get_default()
         if self.client.dir_exists(DIR_GGET):
             self.client.add_dir(DIR_GGET, gconf.CLIENT_PRELOAD_RECURSIVE)
-            self.debug = args[0] or os.getenv("GGET_DEBUG")
         else:
             if Utils.runned_from_source():
                 os.system("gconftool-2 --install-schema-file %s" %



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]