Arne Babenhauserheide  committed 0d5bd54

FIX: Crashed if there were no prettify.js and prettify.css in the top level of the repo.

  • Participants
  • Parent commits 4c81c77
  • Branches default
  • Tags 0.2.2

Comments (0)

Files changed (1)


     # add google code prettify for source code highlighting
     for pretty in ["prettify.js", "prettify.css"]:
-        highlightingsrc = pretty
+        highlightingsrc = os.path.join(os.path.dirname(__file__), pretty)
         highlightingfile = os.path.join(target, pretty)
         if not os.path.isfile(highlightingfile) or not samefilecontent(highlightingsrc, highlightingfile):
             shutil.copyfile(highlightingsrc, highlightingfile)