Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-sdk-tools by
Diff: export/exporters.py
- Revision:
- 24:25bff2709c20
- Parent:
- 23:fbae331171fa
- Child:
- 29:1210849dba19
diff -r fbae331171fa -r 25bff2709c20 export/exporters.py --- a/export/exporters.py Sat Jul 16 22:51:17 2016 +0100 +++ b/export/exporters.py Mon Aug 01 09:10:17 2016 +0100 @@ -23,6 +23,14 @@ class FailedBuildException(Exception) : pass +# Exporter descriptor for TARGETS +# TARGETS as class attribute for backward compatibility (allows: if in Exporter.TARGETS) +class ExporterTargetsProperty(object): + def __init__(self, func): + self.func = func + def __get__(self, inst, cls): + return self.func(cls) + class Exporter(object): TEMPLATE_DIR = dirname(__file__) DOT_IN_RELATIVE_PATH = False