diff options
author | Dmitry Selyutin <ghostmansd@gmail.com> | 2017-08-20 11:17:58 +0300 |
---|---|---|
committer | Dmitry Selyutin <ghostmansd@gmail.com> | 2017-09-08 17:27:55 +0300 |
commit | 02a1f93ea265428559d5e60b3cd79b563371e00c (patch) | |
tree | d6cb20690ee563a185050021029285e825a09212 /pygnulib/classes.py | |
parent | 3ba4dbaefe671991083ff46a2714ff256adf75a1 (diff) | |
download | gnulib-02a1f93ea265428559d5e60b3cd79b563371e00c.tar.gz |
[pygnulib] initial merge (including some small bug fixes)
Diffstat (limited to 'pygnulib/classes.py')
-rw-r--r-- | pygnulib/classes.py | 77 |
1 files changed, 77 insertions, 0 deletions
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__ + |