]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - helpers/mapping.py
Add config file option to the command line
[perso/Immae/Projets/Python/MusicSampler.git] / helpers / mapping.py
index e800778f9ad0f5d9fee7b3a5a0fe85cdd992808f..dd512466cd8c7d81379659ce2c62c68ffc392ba1 100644 (file)
@@ -10,6 +10,7 @@ import sys
 
 from .lock import *
 from .music_file import *
+from . import yml_file
 
 class Mapping(RelativeLayout):
     expected_keys = NumericProperty(0)
@@ -83,7 +84,7 @@ class Mapping(RelativeLayout):
             self.running.remove((key, start_time))
 
     def parse_config(self):
-        stream = open("config.yml", "r")
+        stream = open(yml_file(), "r")
         config = yaml.load(stream)
         stream.close()