View Single Post
Old 03-19-2009, 11:04 PM   #139
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
In a terminal window, files and subdirectories are taken starting from the "current directory". For example, if your ebooks are in ~/Books, then first make sure that Wane.pdb and the script ereader2html.py are in ~/Books (~ is your home directory, I'm not sure what this is called on a Mac). Then in a terminal window do the following:
Code:
cd ~/Books
python ereader2html.py Wane.pdb Wane "My own name" "12345678"
The cd (change directory) command puts you in ~/Books, and the python command should create a subdirectory ~/Books/Wane and write the HTML and images extracted from Wane.pdb into it. Note that there is no "." before ereader2html.py.

You don't have to use ~/Books, replace this with whatever directory you want (but the ebook and the script should be in this directory).
wallcraft is offline   Reply With Quote