Skip to content

Commit

Permalink
Fix __version__ import
Browse files Browse the repository at this point in the history
  • Loading branch information
belerico committed Apr 7, 2020
1 parent 65fc44d commit 84410ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion py_asciimath-cli.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from py_asciimath.py_asciimath import main
from py_asciimath.__main__ import main

if __name__ == "__main__":
main()
2 changes: 1 addition & 1 deletion py_asciimath/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.9"
__version__ = "0.1.0"
8 changes: 2 additions & 6 deletions py_asciimath/py_asciimath.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,18 @@
--log Log the transformation process.
--version Show version.
"""
import re
import sys

from docopt import docopt

from . import __version__
from .parser.parser import ASCIIMath2Tex
from .transformer.const import asciimath_grammar
from .transformer.transformer import LatexTransformer

version = re.search(
r'^__version__\s*=\s*"(.*)"', open("py_asciimath/__init__.py").read()
).group(1)


def main():
arguments = docopt(__doc__, version="py_asciimath " + version)
arguments = docopt(__doc__, version="py_asciimath " + __version__)
if arguments["--output"]:
if arguments["--output"].lower() == "latex":
print("Translating ...")
Expand Down

0 comments on commit 84410ad

Please sign in to comment.