Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/game.py
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2007-07-28 10:10:04 (GMT)
committer Simon Schampijer <simon@schampijer.de>2007-07-28 10:10:04 (GMT)
commit4b4e99f99d257f279e02b87d4f41df66c2516c28 (patch)
treebd21232089075e187c3c1559982fa0a97794c9cd /game.py
parent61c71370348cadc2c3ec3abda314b29bd8f14684 (diff)
Removed absolute path of images and sounds
Removed absolute path for game icons and sounds which was cauing problems when a game is shared between an XO and a sugar-jhbuild emulator
Diffstat (limited to 'game.py')
-rwxr-xr-xgame.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/game.py b/game.py
index 30fdae7..cc91891 100755
--- a/game.py
+++ b/game.py
@@ -147,7 +147,7 @@ class MemorizeGame(gobject.GObject):
if self.sound == 1:
snd = self.model.grid[id].get('snd', None)
if snd != None:
- self.cs.perform('i 108 0.0 3.0 "%s" 1 0.9 0'%(snd))
+ self.cs.perform('i 108 0.0 3.0 "%s" 1 0.9 0'%(os.path.join(os.path.dirname(__file__), snd)))
_logger.debug('Audio: play sound=%s'%snd)
# First card case