Skip to content

Commit f81444d

Browse files
committed
Export static files from mbed export
1 parent 35999be commit f81444d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/export/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from os.path import basename, relpath, normpath, splitext
2121
from os import makedirs, walk
2222
import copy
23-
from shutil import rmtree
23+
from shutil import rmtree, copyfile
2424
import zipfile
2525
ROOT = abspath(join(dirname(__file__), ".."))
2626
sys.path.insert(0, ROOT)
@@ -349,5 +349,9 @@ def export_project(src_paths, export_path, target, ide, libraries_paths=None,
349349
inc_repos)
350350
else:
351351
zip_export(zip_proj, name, resource_dict, files, inc_repos)
352+
else:
353+
for exported in files:
354+
if not exists(join(export_path, basename(exported))):
355+
copyfile(exported, join(export_path, basename(exported)))
352356

353357
return exporter

0 commit comments

Comments
 (0)