Merge pull request #846 from BlackstoneEngineering/ExporterUpdate

Add readme.html to every exported project
pull/849/head
Martin Kojtal 2015-01-16 07:49:44 +00:00
commit 542dba531c
1 changed files with 2 additions and 0 deletions

2
workspace_tools/export/__init__.py Normal file → Executable file
View File

@ -84,6 +84,8 @@ def export(project_path, project_name, ide, target, destination='/tmp/',
zip_path = None
if report['success']:
# add readme file to every offline export.
open(tempdir+"\\README.html",'w').write('<meta http-equiv="refresh" content="0; url=http://developer.mbed.org/handbook/ExportToOfflineToolchain#%s#%s"/>'% (target,ide))
zip_path = zip_working_directory_and_clean_up(tempdir, destination, project_name, clean)
return zip_path, report