From 23e1cb95104ef81ca9bd9968597cc610df27956c Mon Sep 17 00:00:00 2001 From: Klaus Thoden Date: Fri, 3 Mar 2017 15:08:16 +0100 Subject: [PATCH] modifying copy command --- build_frontmatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_frontmatter.py b/build_frontmatter.py index e723ce4..b849fd2 100644 --- a/build_frontmatter.py +++ b/build_frontmatter.py @@ -491,7 +491,7 @@ def main(eoa_publication): add_pdf_info(pdffilename_front, authors_line, unformatted_chapter_title, subject_string) command_file.write("cp %s%s %s%s.bak\n" % (MEDIA_DIR, chapter[7], MEDIA_DIR, chapter[7])) - command_file.write("cp %s %s%s\n" % (pdf_filename, MEDIA_DIR, chapter[7])) + command_file.write("cp '%s' %s%s\n" % (pdf_filename, MEDIA_DIR, chapter[7])) # back to normal command_file.close()