Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-10-04 13:26:28 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-10-04 13:26:28 (GMT)
commit3a9d89d6812f042600a72e9633e37954f6e08d3b (patch)
tree3b45d52b31254a0bcb07b946f6e7f6eb5f685d88 /plugins
parentd061e11ffa63d75a20cd94dd223965ee2d0fbe98 (diff)
only try to import the datastore when running Sugar #3133
Diffstat (limited to 'plugins')
-rw-r--r--plugins/turtle_blocks_extras/turtle_blocks_extras.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/turtle_blocks_extras/turtle_blocks_extras.py b/plugins/turtle_blocks_extras/turtle_blocks_extras.py
index 831eb3c..a142d78 100644
--- a/plugins/turtle_blocks_extras/turtle_blocks_extras.py
+++ b/plugins/turtle_blocks_extras/turtle_blocks_extras.py
@@ -20,11 +20,6 @@ from time import time
import os.path
from gettext import gettext as _
-try:
- from sugar.datastore import datastore
-except ImportError:
- pass
-
from plugins.plugin import Plugin
from TurtleArt.tapalette import make_palette, define_logo_function
from TurtleArt.talogo import primitive_dictionary, logoerror, \
@@ -936,6 +931,7 @@ bullets'))
n[6:].lower not in media_blocks_dictionary:
try:
if self.tw.running_sugar:
+ from sugar.datastore import datastore
try:
dsobject = datastore.get(n[6:])
except: