Skip to content

Commit b0f5b3d

Browse files
committed
Copy static files only
Signed-off-by: Johan Stokking <[email protected]>
1 parent d5108e5 commit b0f5b3d

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
@@ -351,8 +351,8 @@ def export_project(src_paths, export_path, target, ide, libraries_paths=None,
351351
else:
352352
zip_export(zip_proj, name, resource_dict, files, inc_repos)
353353
else:
354-
for exported in files:
355-
if not exists(join(export_path, basename(exported))):
356-
copyfile(exported, join(export_path, basename(exported)))
354+
for static_file in exporter.static_files:
355+
if not exists(join(export_path, basename(static_file))):
356+
copyfile(static_file, join(export_path, basename(static_file)))
357357

358358
return exporter

tools/export/exporters.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ def __init__(self, target, export_dir, project_name, toolchain,
6060
jinja_loader = FileSystemLoader(os.path.dirname(os.path.abspath(__file__)))
6161
self.jinja_environment = Environment(loader=jinja_loader)
6262
self.resources = resources
63-
self.generated_files = [join(self.TEMPLATE_DIR, "GettingStarted.html"),
64-
join(self.TEMPLATE_DIR, ".mbed")]
63+
self.generated_files = []
64+
self.static_files = [join(self.TEMPLATE_DIR, "GettingStarted.html"),
65+
join(self.TEMPLATE_DIR, ".mbed")]
6566
self.builder_files_dict = {}
6667
self.add_config()
6768

0 commit comments

Comments
 (0)