# -*- coding: utf-8 -*-
-import threading
from .music_file import *
from .mapping import *
-
-draw_lock = threading.RLock()
+from .lock import *
+import yaml
def parse_config(mapping):
- import yaml
stream = open("config.yml", "r")
config = yaml.load(stream)
stream.close()
aliases = config['aliases']
seen_files = {}
- file_lock = threading.RLock()
+ file_lock = Lock("file")
for mapped_key in config['keys']:
key = mapping.find_by_unicode(mapped_key)