From 28c6f62317ed2163fa6d86f763b529cb3e55ed2c Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Thu, 27 Oct 2011 20:07:24 +0000 Subject: added missing imports --- (limited to 'plugins/turtle_blocks_extras') diff --git a/plugins/turtle_blocks_extras/turtle_blocks_extras.py b/plugins/turtle_blocks_extras/turtle_blocks_extras.py index 85f57ce..c3f00b1 100644 --- a/plugins/turtle_blocks_extras/turtle_blocks_extras.py +++ b/plugins/turtle_blocks_extras/turtle_blocks_extras.py @@ -981,6 +981,7 @@ bullets')) if os.path.exists(media[6:]): # is it a path? self.tw.lc.filepath = media[6:] elif self.tw.running_sugar: # is it a datastore object? + from sugar.datastore import datastore try: dsobject = datastore.get(media[6:]) except: @@ -1045,6 +1046,7 @@ bullets')) elif os.path.exists(string[6:]): # is it a path? self.tw.lc.filepath = string[6:] elif self.tw.running_sugar: # is it a datastore object? + from sugar.datastore import datastore try: self.tw.lc.dsobject = datastore.get(string[6:]) except: -- cgit v0.9.1