Use absolute paths for epub generation

This commit is contained in:
Bill ONeill 2017-08-01 10:56:04 -07:00 committed by Nemo
parent 01567d57d5
commit 7e82b64fc5
2 changed files with 2 additions and 2 deletions

0
bootstrap.sh Normal file → Executable file
View File

View File

@ -1,5 +1,5 @@
from bs4 import BeautifulSoup
import pypub
import os, pypub
epub = pypub.Epub('Site Reliability Engineering')
@ -10,7 +10,7 @@ def setup_toc():
print(link['href'])
add_chapter_file(link['href'], link.get_text())
epub.create_epub('./build')
epub.create_epub(os.path.abspath('./build'))
def add_chapter_file(href, title):
file_path = href.replace('/sre/book/', 'html/')