Fix some harmless import errors that were exposed by last commit
diff --git a/TestON/drivers/component.py b/TestON/drivers/component.py
index 503acbe..f05be55 100644
--- a/TestON/drivers/component.py
+++ b/TestON/drivers/component.py
@@ -32,6 +32,7 @@
def __init__( self ):
self.default = ''
self.wrapped = sys.modules[ __name__ ]
+ self.count = 0
def __getattr__( self, name ):
"""
@@ -43,7 +44,12 @@
try:
return getattr( self.wrapped, name )
except AttributeError as error:
- main.log.error( str(error.__class__) + " " + str(error) )
+ # NOTE: The first time we load a driver module we get this error
+ if "'module' object has no attribute '__path__'" in error\
+ and self.count == 0:
+ self.count += 1
+ else:
+ main.log.error( str(error.__class__) + " " + str(error) )
try:
def experimentHandling( *args, **kwargs ):
if main.EXPERIMENTAL_MODE == main.TRUE: