mirror of https://github.com/ARMmbed/mbed-os.git
ZIP export static files
Signed-off-by: Johan Stokking <johan@stokking.nl>pull/4804/head
parent
f8abcf4050
commit
9bcd1da2fa
|
@ -346,13 +346,14 @@ def export_project(src_paths, export_path, target, ide, libraries_paths=None,
|
||||||
if label not in toolchain.target.features:
|
if label not in toolchain.target.features:
|
||||||
resource.add(res)
|
resource.add(res)
|
||||||
if isinstance(zip_proj, basestring):
|
if isinstance(zip_proj, basestring):
|
||||||
zip_export(join(export_path, zip_proj), name, resource_dict, files,
|
zip_export(join(export_path, zip_proj), name, resource_dict,
|
||||||
inc_repos)
|
files + exporter.static_files, inc_repos)
|
||||||
else:
|
else:
|
||||||
zip_export(zip_proj, name, resource_dict, files, inc_repos)
|
zip_export(zip_proj, name, resource_dict,
|
||||||
|
files + exporter.static_files, inc_repos)
|
||||||
for static_file in exporter.static_files:
|
else:
|
||||||
if not exists(join(export_path, basename(static_file))):
|
for static_file in exporter.static_files:
|
||||||
copyfile(static_file, join(export_path, basename(static_file)))
|
if not exists(join(export_path, basename(static_file))):
|
||||||
|
copyfile(static_file, join(export_path, basename(static_file)))
|
||||||
|
|
||||||
return exporter
|
return exporter
|
||||||
|
|
Loading…
Reference in New Issue