0

Allow debug import

This commit is contained in:
Andrew Chin
2016-12-31 20:42:15 +00:00
parent 884f8548e7
commit 6f237179e4

View File

@@ -3,6 +3,7 @@
#
import os.path
import os
import platform
import traceback
import sys
@@ -19,6 +20,8 @@ def check_c_overviewer():
try:
import c_overviewer
except ImportError:
if os.environ.get("OVERVIEWER_DEBUG_IMPORT") == "1":
traceback.print_exc()
## if this is a frozen windows package, the following error messages about
## building the c_overviewer extension are not appropriate
if hasattr(sys, "frozen") and platform.system() == 'Windows':