[Sugar-devel] [PATCH sugar 1/2] Let call the frame from arbitrary code avoiding curcular imports

Aleksey Lim alsroot at member.fsf.org
Wed Jan 12 09:32:31 EST 2011


---
 src/jarabe/frame/__init__.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/jarabe/frame/__init__.py b/src/jarabe/frame/__init__.py
index d7aec3d..3ca156c 100644
--- a/src/jarabe/frame/__init__.py
+++ b/src/jarabe/frame/__init__.py
@@ -14,11 +14,10 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-from jarabe.frame.frame import Frame
-
 _view = None
 
 def get_view():
+    from jarabe.frame.frame import Frame
     global _view
     if not _view:
         _view = Frame()
-- 
1.7.3.4



More information about the Sugar-devel mailing list