Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/taproject.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 /taproject.py
parent752e64211ec9da2d5eee8e2073df4a86ceefe55c (diff)
add exception for running outside of Sugar
Diffstat (limited to 'taproject.py')
-rw-r--r--taproject.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/taproject.py b/taproject.py
index b3663ef..6d31f93 100644
--- a/taproject.py
+++ b/taproject.py
@@ -1,7 +1,7 @@
#Copyright (c) 2007-8, Playful Invention Company.
#Copyright (c) 2008-9, Walter Bender
-#Permission is hereby granted, free of charge, to any person obtaining a copy
+#Permission is hereby granted, free of chargae, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including without limitation the rights
#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@@ -45,7 +45,10 @@ import os.path
from tasprites import *
from taturtle import *
from talogo import stop_logo
-from sugar.datastore import datastore
+try:
+ from sugar.datastore import datastore
+except:
+ pass
nolabel = ['audiooff', 'descriptionoff','journal']
shape_dict = {'journal':'texton', \