[POS-commit] r83 - Kiwi2/Kiwi2

Evandro Vale Miquelito evandro at async.com.br
Tue Mar 8 19:41:58 BRT 2005


Author: evandro
Date: 2005-03-08 19:41:57 -0300 (Tue, 08 Mar 2005)
New Revision: 83

Modified:
   Kiwi2/Kiwi2/__init__.py
Log:
partial fix for bug 1845: A set_gladepath function is needed in Kiwi2.

We still need to find a good solution to pixmaps.



Modified: Kiwi2/Kiwi2/__init__.py
===================================================================
--- Kiwi2/Kiwi2/__init__.py	2005-03-08 21:51:15 UTC (rev 82)
+++ Kiwi2/Kiwi2/__init__.py	2005-03-08 22:41:57 UTC (rev 83)
@@ -76,3 +76,15 @@
     stderr.write("Kiwi warning: "+msg+"\n")
 
 gladepath = []
+
+import os
+
+if os.environ.has_key('KIWI_GLADE_PATH'):
+    gladepath = string.split(os.environ['KIWI_GLADE_PATH'])
+
+def set_gladepath(path):
+    """Sets a new path to be used to search for glade files when creating
+    GladeViews or it's subclasses
+    """
+    global gladepath
+    gladepath = path



More information about the POS-commit mailing list