mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-04-21 05:31:30 +02:00
Cleanup get_path usage in favor of pkg_resources.
This commit is contained in:
@@ -195,8 +195,7 @@ class FontScanner(Thread):
|
||||
|
||||
def __init__(self, folders=[], allowed_extensions={'ttf', 'otf'}):
|
||||
Thread.__init__(self)
|
||||
self.folders = folders + font_dirs() + [os.path.join(config_dir, 'fonts'),
|
||||
P('fonts/liberation')]
|
||||
self.folders = folders + font_dirs()
|
||||
self.folders = [os.path.normcase(os.path.abspath(font)) for font in
|
||||
self.folders]
|
||||
self.font_families = ()
|
||||
|
||||
Reference in New Issue
Block a user