Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 09-07-2012, 09:49 PM   #1
cnfmsu
Member
cnfmsu began at the beginning.
 
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,
cnfmsu is offline   Reply With Quote
Old 09-07-2012, 11:18 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,427
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
from calibre.constants import config_dir
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 09:54 PM.


MobileRead.com is a privately owned, operated and funded community.