![]() |
#1 |
Member
![]() Posts: 18
Karma: 10
Join Date: Jan 2012
Device: Nook
|
custom book cover
Hi Kovid
I have a few lines in the recipe file to have a custom book cover as below: def get_cover_url(self): return 'file:///home/username/.config/calibre/custom_recipes/cover.png' Is there a better way to code this: - is there any global symbol to refer to the "recipe" folder. As I use this in multiple computers, between XP and linux, I have to change each time. Thanks, |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,225
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
from calibre.constants import config_dir
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can custom book data be displayed in a custom column? | kiwidude | Development | 9 | 03-02-2011 05:35 AM |
Custom generated book 'cover' | LGN | Calibre | 0 | 11-14-2010 12:32 PM |
PRS-300 Pictures: Pink 300 + Sony red cover + custom cover | h0bbes | Sony Reader | 5 | 01-04-2010 12:41 PM |
Making a custom cover | nobylspoon | Sony Reader | 0 | 09-01-2009 09:37 AM |
Accessories My first custom cover, made to look like a book | qwerty78 | Amazon Kindle | 2 | 07-21-2009 03:36 PM |