[Bugs] #638 NORM: "Playwave" example not working: directory not found?
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Tue Mar 9 17:26:09 EST 2010
#638: "Playwave" example not working: directory not found?
-----------------------------+----------------------------------------------
Reporter: sascha_silbe | Owner: lfaraone
Type: defect | Status: new
Priority: Normal | Milestone: 0.86
Component: Pippy | Version: Git as of bugdate
Severity: Major | Keywords:
Distribution: Unspecified | Status_field: Unconfirmed
-----------------------------+----------------------------------------------
Comment(by jpichon):
Thank you for the feedback. I was so keen on removing the stack trace and
displaying an error message that I didn't properly check the validity of
the message itself, sorry! It looks like the directory paths for
TamTamEdit are hardcoded incorrectly in sound.py. Installing TamTamEdit
doesn't work for the "Getsound" example either, I'm looking into it at the
same time.
Is there a recommended way to access activity directories from Sugar? I've
had some success with adding the following to finddir() in sound.py so
far, though I still need to test it further and on different
configurations:
{{{
tamtam_dir = "TamTamEdit.activity/common/Resources/Sounds/"
if "SUGAR_PATH" in os.environ:
dirs.append(os.environ["SUGAR_PATH"] + "/activities/" +
tamtam_dir)
dirs.append(os.path.expanduser("~") + "/Activities/" + tamtam_dir)
}}}
--
Ticket URL: <https://bugs.sugarlabs.org/ticket/638#comment:4>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list