diff options
author | C. Scott Ananian <cscott@laptop.org> | 2007-12-11 19:35:49 (GMT) |
---|---|---|
committer | C. Scott Ananian <cscott@laptop.org> | 2007-12-11 19:35:49 (GMT) |
commit | 387995e07fa348d292b07597b1b6239395db201f (patch) | |
tree | be62bd75d026ae81620c06b9338f514343273392 | |
parent | 9c3472a73727c28f3920ea950690f6275549eef6 (diff) |
Protect the 'pippy.sound' import for easier testing on non-XOs.
-rw-r--r-- | library/pippy/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/library/pippy/__init__.py b/library/pippy/__init__.py index 8ddcc7e..5814865 100644 --- a/library/pippy/__init__.py +++ b/library/pippy/__init__.py @@ -1,7 +1,10 @@ """Pippy standard library.""" import pippy.console as console import pippy.game as pygame -import pippy.sound as sound +try: + import pippy.sound as sound +except ImportError: + pass # this module fails to import on non-XOs. def wait(delay=0.1): """Pause briefly, for animations.""" |