mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -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
|
CACHE_VERSION = 2
|
||||||
|
|
||||||
def __init__(self, folders=[], allowed_extensions={'ttf', 'otf'}):
|
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'),
|
self.folders = folders + font_dirs() + [os.path.join(config_dir, 'fonts'),
|
||||||
P('fonts/liberation')]
|
P('fonts/liberation')]
|
||||||
self.folders = [os.path.normcase(os.path.abspath(f)) for f in
|
self.folders = [os.path.normcase(os.path.abspath(f)) for f in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user