@@ -344,13 +344,14 @@ def export_project(src_paths, export_path, target, ide, libraries_paths=None,
344
344
if label not in toolchain .target .features :
345
345
resource .add (res )
346
346
if isinstance (zip_proj , basestring ):
347
- zip_export (join (export_path , zip_proj ), name , resource_dict , files ,
348
- inc_repos )
347
+ zip_export (join (export_path , zip_proj ), name , resource_dict ,
348
+ files + exporter . static_files , inc_repos )
349
349
else :
350
- zip_export (zip_proj , name , resource_dict , files , inc_repos )
351
-
352
- for static_file in exporter .static_files :
353
- if not exists (join (export_path , basename (static_file ))):
354
- copyfile (static_file , join (export_path , basename (static_file )))
350
+ zip_export (zip_proj , name , resource_dict ,
351
+ files + exporter .static_files , inc_repos )
352
+ else :
353
+ for static_file in exporter .static_files :
354
+ if not exists (join (export_path , basename (static_file ))):
355
+ copyfile (static_file , join (export_path , basename (static_file )))
355
356
356
357
return exporter
0 commit comments