From 56d4f6f9f344a73ae1411cf5fa116afd596f7bbf Mon Sep 17 00:00:00 2001 From: 0xc0170 Date: Mon, 7 Dec 2015 20:22:53 +0000 Subject: [PATCH] Exporter - condition for progen simplification --- workspace_tools/export/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/workspace_tools/export/__init__.py b/workspace_tools/export/__init__.py index ea362ab1bc..d1fbc47416 100755 --- a/workspace_tools/export/__init__.py +++ b/workspace_tools/export/__init__.py @@ -88,10 +88,8 @@ def export(project_path, project_name, ide, target, destination='/tmp/', except AttributeError: pass if use_progen: - if target in Exporter.PROGEN_TARGETS.keys(): - progen_target = Exporter.PROGEN_TARGETS[target] - if not ProGenDef(ide).is_supported(progen_target): - supported = False + if target not in Exporter.PROGEN_TARGETS.keys() or not ProGenDef(ide).is_supported(Exporter.PROGEN_TARGETS[target]): + supported = False else: if target not in Exporter.TARGETS: supported = False