Synchronise the openstack bugs
[parser.git] / tosca2heat / tosca-parser / toscaparser / extensions / exttools.py
index 963b958..5310422 100644 (file)
@@ -36,7 +36,7 @@ class ExtTools(object):
 
         extdirs = [e for e in os.listdir(abs_path) if
                    not e.startswith('tests') and
-                   not e.endswith('.pyc') and not e.endswith('.py')]
+                   os.path.isdir(os.path.join(abs_path, e))]
 
         for e in extdirs:
             log.info(e)