Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Util/CSoundNote.py
diff options
context:
space:
mode:
authorNathanaël Lécaudé <Nat@localhost.localdomain>2007-01-29 06:00:48 (GMT)
committer Nathanaël Lécaudé <Nat@localhost.localdomain>2007-01-29 06:00:48 (GMT)
commit91597cc694d20ef5385805f26af8a1c829b1052c (patch)
treed6382a53960631eaff81264ac0ea1cdfdf56cc26 /Util/CSoundNote.py
parentd1bd5c3afca2aad09701af702d018f3e99496d07 (diff)
Redid very ugly code I made in previous update
Diffstat (limited to 'Util/CSoundNote.py')
-rw-r--r--Util/CSoundNote.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/Util/CSoundNote.py b/Util/CSoundNote.py
index 148f9b1..f49ae47 100644
--- a/Util/CSoundNote.py
+++ b/Util/CSoundNote.py
@@ -3,20 +3,11 @@ from Util.CSoundClient import CSoundClient
from Generation.GenerationConstants import GenerationConstants
from Util.Clooper.SClient import *
-SugarMode = True
-try:
- from sugar import env
-except ImportError:
- SugarMode = False
def CSound_loadInstruments( ):
- if SugarMode == True:
- home_path = env.get_profile_path() + Config.PREF_DIR
- else:
- home_path = Config.SOUNDS_DIR + '/temp'
for instrumentSoundFile in Config.INSTRUMENTS.keys():
if instrumentSoundFile[0:3] == 'mic' or instrumentSoundFile[0:3] == 'lab':
- fileName = home_path + '/' + instrumentSoundFile
+ fileName = Config.PREF_DIR + '/' + instrumentSoundFile
else:
fileName = Config.SOUNDS_DIR + "/" + instrumentSoundFile
instrumentId = Config.INSTRUMENT_TABLE_OFFSET + Config.INSTRUMENTS[ instrumentSoundFile ].instrumentId