diff --git a/src/photoshop/__init__.py b/src/photoshop/__init__.py index 0b364464..e2d4e8d2 100644 --- a/src/photoshop/__init__.py +++ b/src/photoshop/__init__.py @@ -15,6 +15,24 @@ from photoshop.save_options import * from photoshop.text_fonts import TextFonts from photoshop.text_item import TextItem + + # All public APIs. + __all__ = ( + [ + 'ActionDescriptor', + 'ActionList', + 'ActionReference', + 'Application', + 'SolidColor', + 'TextFonts', + 'TextItem', + 'Session' + ] + + colors.__all__ + + save_options.__all__ + + enumerations.__all__ + + errors.__all__ + ) except ModuleNotFoundError: # Fix Build docs failed on readthedocs. pass @@ -199,24 +217,6 @@ def __exit__(self, exc_type, exc_val, exc_tb): self.active_document.close() -# All public APIs. -__all__ = ( - [ - 'ActionDescriptor', - 'ActionList', - 'ActionReference', - 'Application', - 'SolidColor', - 'TextFonts', - 'TextItem', - 'Session' - ] - + colors.__all__ - + save_options.__all__ - + enumerations.__all__ - + errors.__all__ -) - __title__ = 'photoshop_python_api' __version__ = '0.9.0' __author__ = 'Long Hao'