From 02a1f93ea265428559d5e60b3cd79b563371e00c Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 20 Aug 2017 11:17:58 +0300 Subject: [pygnulib] initial merge (including some small bug fixes) --- pygnulib/classes.py | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 pygnulib/classes.py (limited to 'pygnulib/classes.py') diff --git a/pygnulib/classes.py b/pygnulib/classes.py new file mode 100644 index 0000000000..3756db3c6e --- /dev/null +++ b/pygnulib/classes.py @@ -0,0 +1,77 @@ +#!/usr/bin/python +# encoding: UTF-8 + +'''An easy access to pygnulib classes.''' + +#=============================================================================== +# Define global imports +#=============================================================================== +__all__ = list() + +try: + # Constants + from . import constants + + # Main classes + from .GLConfig import GLConfig + from .GLError import GLError + from .GLInfo import GLInfo + + # File system + from .GLFileSystem import GLFileSystem + from .GLFileSystem import GLFileAssistant + + # Module system + from .GLModuleSystem import GLModule + from .GLModuleSystem import GLModuleSystem + from .GLModuleSystem import GLModuleTable + + # Different modes + from .GLImport import GLImport + from .GLEmiter import GLEmiter + from .GLTestDir import GLTestDir + from .GLTestDir import GLMegaTestDir + + # Other modules + from .GLMakefileTable import GLMakefileTable +except ValueError as error: + # Constants + import constants + + # Main classes + from GLConfig import GLConfig + from GLError import GLError + from GLInfo import GLInfo + + # File system + from GLFileSystem import GLFileSystem + from GLFileSystem import GLFileAssistant + + # Module system + from GLModuleSystem import GLModule + from GLModuleSystem import GLModuleSystem + from GLModuleSystem import GLModuleTable + + # Different modes + from GLImport import GLImport + from GLEmiter import GLEmiter + from GLTestDir import GLTestDir + from GLTestDir import GLMegaTestDir + + # Other modules + from GLMakefileTable import GLMakefileTable + +# Append modules to namespace. +__all__ += ['GLConfig', 'GLError', 'GLInfo'] +__all__ += ['GLFileSystem', 'GLFileAssistant'] +__all__ += ['GLModule', 'GLModuleSystem', 'GLModuleTable'] +__all__ += ['GLImport', 'GLEmiter', 'GLTestDir'] +__all__ += ['GLMakefileTable'] + +#=============================================================================== +# Define module information +#=============================================================================== +__author__ = constants.__author__ +__license__ = constants.__license__ +__copyright__ = constants.__copyright__ + -- cgit v1.2.1