Tests: problems with extensions loading shouldn'd break debugger
import pkgutil
import sys
+import traceback
from _pydev_bundle import pydev_log
-import pydevd_plugins.extensions
+try:
+ import pydevd_plugins.extensions as extensions
+except:
+ traceback.print_exc()
+ extensions = None
class ExtensionManager(object):
@@ -11,8 +16,9 @@ class ExtensionManager(object):
def _load_modules(self):
self.loaded_extensions = []
- for module_loader, name, ispkg in pkgutil.walk_packages(pydevd_plugins.extensions.__path__,
- pydevd_plugins.extensions.__name__ + '.'):
+ if extensions:
+ for module_loader, name, ispkg in pkgutil.walk_packages(extensions.__path__,
+ extensions.__name__ + '.'):
mod_name = name.split('.')[-1]
if not ispkg and mod_name.startswith('pydevd_plugin'):
try:
