0

added a nice error if c_overviewer is missing, simplified composite.py

now that c_overviewer is required, we don't need to have a PIL paste()
fallback. The next step is to remove composite.py entirely!
This commit is contained in:
Aaron Griffith
2011-03-19 18:53:29 -04:00
parent 26d781f249
commit 494caba598
3 changed files with 13 additions and 17 deletions

12
gmap.py
View File

@@ -27,11 +27,19 @@ import re
import multiprocessing
import time
import logging
import optimizeimages
import composite
logging.basicConfig(level=logging.INFO,format="%(asctime)s [%(levelname)s] %(message)s")
# make sure the c_overviewer extension is available
try:
import c_overviewer
except ImportError:
print "You need to compile the c_overviewer module to run Minecraft Overviewer."
print "Run `python setup.py build`, or see the README for details."
sys.exit(1)
import optimizeimages
import composite
import world
import quadtree