0

Fixed missing c_overviewer logic regression

Also print the missing c_overviewer module error
message after the traceback (which i think makes
the error more obvious)
This commit is contained in:
Andrew Chin
2011-09-09 22:40:42 -04:00
parent dc81561c8f
commit 62677a8a0f

View File

@@ -30,7 +30,7 @@ import multiprocessing
import time import time
import logging import logging
import platform import platform
from overviewer_core import util, textures from overviewer_core import util
logging.basicConfig(level=logging.INFO,format="%(asctime)s [%(levelname)s] %(message)s") logging.basicConfig(level=logging.INFO,format="%(asctime)s [%(levelname)s] %(message)s")
@@ -56,12 +56,15 @@ except ImportError:
print "make sure it is up-to-date (clean and rebuild)" print "make sure it is up-to-date (clean and rebuild)"
sys.exit(1) sys.exit(1)
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."
import traceback import traceback
traceback.print_exc() traceback.print_exc()
print ""
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) sys.exit(1)
from overviewer_core import textures
if hasattr(sys, "frozen"): if hasattr(sys, "frozen"):
pass # we don't bother with a compat test since it should always be in sync pass # we don't bother with a compat test since it should always be in sync