Skip to content

Commit f0b3506

Browse files
johanstokking0xc0170
authored andcommitted
Copy static files only
Signed-off-by: Johan Stokking <[email protected]>
1 parent a5148ec commit f0b3506

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

tools/export/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ def export_project(src_paths, export_path, target, ide, libraries_paths=None,
349349
else:
350350
zip_export(zip_proj, name, resource_dict, files, inc_repos)
351351
else:
352-
for exported in files:
353-
if not exists(join(export_path, basename(exported))):
354-
copyfile(exported, join(export_path, basename(exported)))
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)))
355355

356356
return exporter

tools/export/exporters.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ def __init__(self, target, export_dir, project_name, toolchain,
7272
jinja_loader = FileSystemLoader(os.path.dirname(os.path.abspath(__file__)))
7373
self.jinja_environment = Environment(loader=jinja_loader)
7474
self.resources = resources
75-
self.generated_files = [join(self.TEMPLATE_DIR, "GettingStarted.html"),
76-
join(self.TEMPLATE_DIR, ".mbed")]
75+
self.generated_files = []
76+
self.static_files = [join(self.TEMPLATE_DIR, "GettingStarted.html"),
77+
join(self.TEMPLATE_DIR, ".mbed")]
7778
self.builder_files_dict = {}
7879
self.add_config()
7980

0 commit comments

Comments
 (0)