imports are now fully functional

This commit is contained in:
David Halter
2012-08-03 13:00:44 +02:00
parent a9fbb2edce
commit 639457b9ec
9 changed files with 30 additions and 16 deletions

View File

@@ -179,7 +179,9 @@ def test_dir(completion_test_dir, third_party=False):
if f_name.endswith(".py"):
if third_party:
try:
__import__(f_name.replace('.py', ''))
# there is always an underline at the end.
# It looks like: completion/thirdparty/pylab_.py
__import__(f_name.replace('_.py', ''))
except ImportError:
summary.append('Thirdparty-Library %s not found.' %
f_name)