Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tasetup.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2009-09-26 02:35:42 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-09-26 02:35:42 (GMT)
commit73f074e7f5359319f79c8c9a9555eed77866c729 (patch)
tree86ef42a9b810f43c925a8543ce81596deb50a4f1 /tasetup.py
parent752e64211ec9da2d5eee8e2073df4a86ceefe55c (diff)
add exception for running outside of Sugar
Diffstat (limited to 'tasetup.py')
-rw-r--r--tasetup.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tasetup.py b/tasetup.py
index e6799f7..131e8bc 100644
--- a/tasetup.py
+++ b/tasetup.py
@@ -329,7 +329,10 @@ def setup_selector(tw,name,y,blockdescriptions):
return spr
def load_image(path, dir, file):
- from sugar.activity import activity
+ try:
+ from sugar.activity import activity
+ except:
+ pass
try:
datapath = os.path.join(activity.get_activity_root(), "data")