From 7e4e5e773a3c8af77d5ca384480c4ed551c5b6d8 Mon Sep 17 00:00:00 2001
From: Julie Pichon <julie.pichon@gmail.com>
Date: Sun, 14 Mar 2010 20:17:44 +0000
Subject: [PATCH] Add platform independent path (#638)
---
library/pippy/sound.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/library/pippy/sound.py b/library/pippy/sound.py
index d9f7dfb..ef657cf 100755
a
|
b
|
def quit(self): |
19 | 19 | """ |
20 | 20 | |
21 | 21 | def finddir(): |
| 22 | tamtam_dir = "TamTamEdit.activity/common/Resources/Sounds/" |
| 23 | |
| 24 | if "SUGAR_PATH" in os.environ: |
| 25 | dirs.append(os.environ["SUGAR_PATH"] + "/activities/" + tamtam_dir) |
| 26 | dirs.append(os.path.expanduser("~") + "/Activities/" + tamtam_dir) |
| 27 | |
22 | 28 | for d in dirs: |
23 | 29 | if os.path.isdir(d): |
24 | 30 | return d |