Skip to content

Commit 67fae3a

Browse files
committed
Allow exporting to in-memory zip file
1 parent f4a686f commit 67fae3a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/project_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,10 @@ def export_project(src_paths, export_path, target, ide,
233233
target, name, toolchain, ide,
234234
macros=macros)
235235
if zip_proj:
236-
zip_export(join(export_path, zip_proj), name, temp, files)
236+
if isinstance(zip_proj, basestring):
237+
zip_export(join(export_path, zip_proj), name, temp, files)
238+
else:
239+
zip_export(zip_proj, name, temp, files)
237240

238241
return exporter
239242

0 commit comments

Comments
 (0)