Skip to content

Commit 60b322a

Browse files
screamerbg0xc0170
authored andcommitted
Fixed broken zip exporter due to unintialized vars and python traceback (#1674)
1 parent 9b277ae commit 60b322a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

workspace_tools/export/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ def export(project_path, project_name, ide, target, destination='/tmp/',
6363
if tempdir is None:
6464
tempdir = tempfile.mkdtemp()
6565

66+
use_progen = False
67+
supported = True
6668
report = {'success': False, 'errormsg':''}
69+
6770
if ide is None or ide == "zip":
6871
# Simple ZIP exporter
6972
try:
@@ -80,9 +83,6 @@ def export(project_path, project_name, ide, target, destination='/tmp/',
8083
else:
8184
Exporter = EXPORTERS[ide]
8285
target = EXPORT_MAP.get(target, target)
83-
# use progen targets or mbed exporters targets, check progen attribute
84-
use_progen = False
85-
supported = True
8686
try:
8787
if Exporter.PROGEN_ACTIVE:
8888
use_progen = True

0 commit comments

Comments
 (0)