X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/blobdiff_plain/928c4fcf26174df9b8cf62d67e0061ad703481e9..886983ad09edd97504d714017bd02ed92ce0f401:/src/songs/Song.py?ds=sidebyside

diff --git a/src/songs/Song.py b/src/songs/Song.py
index c018eae..c1d6641 100755
--- a/src/songs/Song.py
+++ b/src/songs/Song.py
@@ -5,8 +5,12 @@ Created on 2 oct. 2009
 '''
 import pickle
 import os.path
-from MidiToSong import MidiToSong
-from mxmMidi.MidiInFile import MidiInFile
+try :
+    from MidiToSong import MidiToSong
+    from mxmMidi.MidiInFile import MidiInFile
+except ImportError :
+    # loadSongFromMidi KO dans ce cas.
+    pass
 
 class Song:
     '''