Clone of official tools
Diff: export/exporters.py
- Revision:
- 24:25bff2709c20
- Parent:
- 23:fbae331171fa
- Child:
- 29:1210849dba19
--- 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