From 67fae3a7059eb5dd0a84b1f6162834b20eb995b4 Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Thu, 28 Jul 2016 16:55:38 -0500 Subject: [PATCH] Allow exporting to in-memory zip file --- tools/project_api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/project_api.py b/tools/project_api.py index 2bffd5ebe0..f69d3aff99 100644 --- a/tools/project_api.py +++ b/tools/project_api.py @@ -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