View Single Post
Old 05-31-2011, 09:59 AM   #1
jens32
Junior Member
jens32 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2011
Device: Kindle 3
Question ebook-convert: access current working directory inside recipe

Hi,
I am a python novice and I wasn't able to figure out a way to access the current working directory inside the recipe. I want to write some log files into the folder. self.output_dir and os.getcwd() are set to the temporary folder.
How do I get the CWD of the folder where the recipe is and the output file is generated by ebook-convert a.recipe ebook.mobi?
jens32 is offline   Reply With Quote