|
@@ -3,11 +3,16 @@ its namespace."""
|
|
|
|
|
|
__kits_to_load = [ @CTK_PYTHON_WRAPPED_LIBRARIES@ ]
|
|
|
|
|
|
+# Set to True when debugging
|
|
|
+CTK_VERBOSE_IMPORT = False
|
|
|
+
|
|
|
for kit in __kits_to_load:
|
|
|
try:
|
|
|
exec "from PythonQt.CTK%s import *" % (kit)
|
|
|
except ImportError as detail:
|
|
|
- print detail
|
|
|
+ global CTK_VERBOSE_IMPORT
|
|
|
+ if CTK_VERBOSE_IMPORT:
|
|
|
+ print detail
|
|
|
|
|
|
# Removing things the user shouldn't have to see.
|
|
|
del __kits_to_load
|