mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-05 08:40:13 -04:00
Use a daemon thread for the fontscanner so it doesnt prevent interpreter shutdown
This commit is contained in:
parent
bc30dbbdb4
commit
0ca3b990dc
@ -200,7 +200,7 @@ class FontScanner(Thread):
|
||||
CACHE_VERSION = 2
|
||||
|
||||
def __init__(self, folders=[], allowed_extensions={'ttf', 'otf'}):
|
||||
Thread.__init__(self)
|
||||
super().__init__(daemon=True)
|
||||
self.folders = folders + font_dirs() + [os.path.join(config_dir, 'fonts'),
|
||||
P('fonts/liberation')]
|
||||
self.folders = [os.path.normcase(os.path.abspath(f)) for f in
|
||||
|
Loading…
x
Reference in New Issue
Block a user