0

Merge branch 'master' of https://github.com/Evil-Code/Minecraft-Overviewer into Evil-Code-master

Conflicts:
	quadtree.py
This commit is contained in:
Andrew Chin
2011-02-19 14:47:57 -05:00
2 changed files with 12 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ import logging
import util
import cPickle
import stat
from time import gmtime, strftime
from PIL import Image
@@ -170,6 +171,16 @@ class QuadtreeGen(object):
# copy web assets into destdir:
mirror_dir(os.path.join(util.get_program_path(), "web_assets"), self.destdir)
# Add time in index.html
indexpath = os.path.join(self.destdir, "index.html")
index = open(indexpath, 'r').read()
index = index.replace(
"{time}", str(strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime())))
with open(os.path.join(self.destdir, "index.html"), 'w') as output:
output.write(index)
if skipjs:
return