summaryrefslogtreecommitdiff
path: root/asciidoc/__init__.py
blob: 884b29ed6da4f4a83ef2c307d318912f5eff53bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""asciidoc module"""

import sys
from .__metadata__ import VERSION, __version__

__all__ = ['VERSION', '__version__']

# If running as a script, we avoid these imports to avoid a circular
# RuntimeWarning, which is fine as we don't use them in that case.
if "-m" not in sys.argv:
    from .api import AsciiDocAPI
    from .asciidoc import execute, cli
    __all__ += ['AsciiDocAPI', 'execute', 'cli']