added debug var imports_processed

This commit is contained in:
David Halter
2012-10-23 14:06:50 +02:00
parent 87f11b638d
commit 47608b1f4d

View File

@@ -13,6 +13,9 @@ import parsing
import evaluate
import itertools
# for debugging purposes only
imports_processed = 0
class ModuleNotFound(Exception):
pass
@@ -184,6 +187,8 @@ class ImportPath(object):
for i in range(self.import_stmt.relative_count):
path = os.path.dirname(path)
global imports_processed
imports_processed += 1
if path is not None:
return imp.find_module(string, [path])
else: