old_contents: import subprocess
  import os
  
  def GenerateCover():
  	#Cover = "Cover"
  	#BookName = "BookName"
  	#BookCover = BookName + Cover
  	#BookCoverHTML = BookCover + ".html"
  	#CSS = "CSS_"
  	#CSSExt = "CSSExt"
  
  	#pandocCommand = "pandoc ..\\source\\" + BookCover + ".txt -o "
  	#+ BookCoverHTML + " -standalone " + CSS_ + Cover + ".css --verbose"
  	pandocCommand = "pandoc ..\\source\\test.txt -o test.html"
  	with open('dujing.log', 'w') as trace:
  		subprocess.call(pandocCommand, stdin=None, stdout=trace, stderr=None, shell=True)
  
  def GenerateBook():
  	Books = ["DaXue", "ZhongYong", "LunYu", "MengZi"]
  	prefaceCommand = "pandoc ..\\Source\\Preface.md -o Preface.html --standalone"
  	with open("Dujing.log", 'w') as trace:
  		subprocess.call(prefaceCommand, stdin=None, stdout=trace, stderr=None, shell=True)
  		os.chdir("..\\Build")
  		for book in Books:
  			subprocess.call("GenerateBook " + book, stdin=None, stdout=trace, stderr=None, shell=True)
  
  if __name__ == '__main__':
  	GenerateBook()
  
new_contents: import subprocess
  import os
  
  
  def GenerateBook():
  	Books = ["DaXue", "ZhongYong", "LunYu", "MengZi"]
  	prefaceCommand = "pandoc ..\\Source\\Preface.md -o Preface.html --standalone"
  	with open("Dujing.log", 'w') as trace:
  		subprocess.call(prefaceCommand, stdin=None, stdout=trace, stderr=None, shell=True)
  		os.chdir("..\\Build")
  		for book in Books:
  			subprocess.call("GenerateBook " + book, stdin=None, stdout=trace, stderr=None, shell=True)
  
  if __name__ == '__main__':
  	GenerateBook()
  
subject: Delete GenerateCover()