From d01a7273f4115c2b02d8003d307ee4673ede11c9 Mon Sep 17 00:00:00 2001 From: Sahdev Zala Date: Sun, 26 Jun 2016 20:57:28 -0700 Subject: [PATCH] Allow optimized compiled file in extensions Optimized complied byte files ends with .pyo and should be allowed. Change-Id: Id0b1f25c18ef29f5fa8f600b6cd6d3191c093b75 Closes-Bug: #1569799 --- toscaparser/extensions/exttools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toscaparser/extensions/exttools.py b/toscaparser/extensions/exttools.py index 963b958b..53104220 100644 --- a/toscaparser/extensions/exttools.py +++ b/toscaparser/extensions/exttools.py @@ -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)