1
0
forked from VimPlug/jedi

added debug var imports_processed

This commit is contained in:
David Halter
2012-10-23 14:06:50 +02:00
parent 87f11b638d
commit 47608b1f4d
+5
View File
@@ -13,6 +13,9 @@ import parsing
import evaluate import evaluate
import itertools import itertools
# for debugging purposes only
imports_processed = 0
class ModuleNotFound(Exception): class ModuleNotFound(Exception):
pass pass
@@ -184,6 +187,8 @@ class ImportPath(object):
for i in range(self.import_stmt.relative_count): for i in range(self.import_stmt.relative_count):
path = os.path.dirname(path) path = os.path.dirname(path)
global imports_processed
imports_processed += 1
if path is not None: if path is not None:
return imp.find_module(string, [path]) return imp.find_module(string, [path])
else: else: