1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-03-27 22:03:32 +01:00

Cleanup get_image_path usage.

This commit is contained in:
2020-04-12 19:32:51 +02:00
parent 5aa0b1a0eb
commit ea19d47ad1
6 changed files with 237 additions and 291 deletions

View File

@@ -635,9 +635,8 @@ def read_custom_tweaks():
def default_tweaks_raw():
with open(pkg_resources.resource_filename('ebook_converter',
'data/default_tweaks.py')) as f:
return f.read().encode()
return pkg_resources.resource_filename('ebook_converter',
'data/default_tweaks.py')
def read_tweaks():