Export static files from mbed export

pull/4544/head
Jimmy Brisson 2017-06-13 13:37:53 -05:00
parent 35999be018
commit f81444d4f8
1 changed files with 5 additions and 1 deletions

View File

@ -20,7 +20,7 @@ from os.path import join, abspath, dirname, exists
from os.path import basename, relpath, normpath, splitext
from os import makedirs, walk
import copy
from shutil import rmtree
from shutil import rmtree, copyfile
import zipfile
ROOT = abspath(join(dirname(__file__), ".."))
sys.path.insert(0, ROOT)
@ -349,5 +349,9 @@ def export_project(src_paths, export_path, target, ide, libraries_paths=None,
inc_repos)
else:
zip_export(zip_proj, name, resource_dict, files, inc_repos)
else:
for exported in files:
if not exists(join(export_path, basename(exported))):
copyfile(exported, join(export_path, basename(exported)))
return exporter