diff options
author | Nathanaë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) |
commit | 91597cc694d20ef5385805f26af8a1c829b1052c (patch) | |
tree | d6382a53960631eaff81264ac0ea1cdfdf56cc26 /Util/CSoundNote.py | |
parent | d1bd5c3afca2aad09701af702d018f3e99496d07 (diff) |
Redid very ugly code I made in previous update
Diffstat (limited to 'Util/CSoundNote.py')
-rw-r--r-- | Util/CSoundNote.py | 11 |
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 |