Ticket #638: 0001-Add-platform-independent-path-638.patch

File 0001-Add-platform-independent-path-638.patch, 845 bytes (added by jpichon, 14 years ago)
  • library/pippy/sound.py

    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): 
    1919"""
    2020
    2121def 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
    2228    for d in dirs:
    2329        if os.path.isdir(d):
    2430            return d