From 462ac1bb5c5501561775ad34e7270541c3580a91 Mon Sep 17 00:00:00 2001 From: Roger Labbe Date: Sun, 3 Jan 2016 10:43:45 -0800 Subject: [PATCH] Fixed obsolete import, hard code of filename --- pdf/to_pdf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdf/to_pdf.py b/pdf/to_pdf.py index 6497d71..3d7f338 100644 --- a/pdf/to_pdf.py +++ b/pdf/to_pdf.py @@ -1,4 +1,4 @@ -import IPython.nbconvert.exporters.pdf as pdf +import nbconvert.exporters.pdf as pdf import sys if len(sys.argv) == 2: @@ -12,7 +12,7 @@ f.close() newdata = filedata.replace('\chapter{Preface}', '\chapter*{Preface}') -f = open('book.tex', 'w', encoding="iso-8859-1") +f = open(name, 'w', encoding="iso-8859-1") f.write(newdata) f.close()