Allow exporting to in-memory zip file

pull/2245/head
Jimmy Brisson 2016-07-28 16:55:38 -05:00
parent f4a686fbd9
commit 67fae3a705
1 changed files with 4 additions and 1 deletions

View File

@ -233,7 +233,10 @@ def export_project(src_paths, export_path, target, ide,
target, name, toolchain, ide,
macros=macros)
if zip_proj:
zip_export(join(export_path, zip_proj), name, temp, files)
if isinstance(zip_proj, basestring):
zip_export(join(export_path, zip_proj), name, temp, files)
else:
zip_export(zip_proj, name, temp, files)
return exporter