Exporter - condition for progen simplification

pull/1487/head
0xc0170 2015-12-07 20:22:53 +00:00
parent 5074f4814c
commit 56d4f6f9f3
1 changed files with 2 additions and 4 deletions

View File

@ -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