Allow debug import
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import os.path
|
import os.path
|
||||||
|
import os
|
||||||
import platform
|
import platform
|
||||||
import traceback
|
import traceback
|
||||||
import sys
|
import sys
|
||||||
@@ -19,6 +20,8 @@ def check_c_overviewer():
|
|||||||
try:
|
try:
|
||||||
import c_overviewer
|
import c_overviewer
|
||||||
except ImportError:
|
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
|
## if this is a frozen windows package, the following error messages about
|
||||||
## building the c_overviewer extension are not appropriate
|
## building the c_overviewer extension are not appropriate
|
||||||
if hasattr(sys, "frozen") and platform.system() == 'Windows':
|
if hasattr(sys, "frozen") and platform.system() == 'Windows':
|
||||||
|
|||||||
Reference in New Issue
Block a user