Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors1pc06 <s1pc06@s1pc06.(none)>2010-05-26 18:23:25 (GMT)
committer s1pc06 <s1pc06@s1pc06.(none)>2010-05-26 18:23:25 (GMT)
commit7c1c619275f92fd3bd0cbd5305f3a0b25d6fe0ee (patch)
tree93f9e8bc10ea19ca20b16ea4ffef417eebbbbd1e
parentdef3c100a16218ba1691098c49051811523d0305 (diff)
make sure we can run outside of Sugar for testing..
-rwxr-xr-xconozcopy.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/conozcopy.py b/conozcopy.py
index 8133d0e..9d69e58 100755
--- a/conozcopy.py
+++ b/conozcopy.py
@@ -18,7 +18,12 @@
# Contact information:
# Daniel Brassel Buss <dbrassel@gmail.com>
-from sugar.activity import activity
+# make sure we can run outside of Sugar for testing..
+try:
+ from sugar.activity import activity
+except:
+ pass
+
import sys
import random
import os
@@ -930,9 +935,12 @@ class ConozcoPy():
" ")
self.cursor_espera = pygame.cursors.compile(datos_cursor_espera)
- toolbox = activity.ActivityToolbox(olpcgames.ACTIVITY)
- olpcgames.ACTIVITY.set_toolbox(toolbox)
- toolbox.show()
+ try:
+ toolbox = activity.ActivityToolbox(olpcgames.ACTIVITY)
+ olpcgames.ACTIVITY.set_toolbox(toolbox)
+ toolbox.show()
+ except:
+ pass
def cargarDirectorio(self):
"""Carga la informacion especifica de un directorio"""